Follow up r15224, being these map flags do not stack then we can check just for pvp rather than 2 (gvg&bg).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15229 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
54cb7f36f1
commit
b561a8c31d
@ -617,7 +617,7 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damag
|
||||
sc_start(bl,sc->data[SC_POISONINGWEAPON]->val2,100,sc->data[SC_POISONINGWEAPON]->val1,skill_get_time2(GC_POISONINGWEAPON,sc->data[SC_POISONINGWEAPON]->val1));
|
||||
}
|
||||
|
||||
if (battle_config.pk_mode && sd && bl->type == BL_PC && damage && !map_flag_gvg(sd->bl.m) && !map[sd->bl.m].flag.battleground)
|
||||
if (battle_config.pk_mode && sd && bl->type == BL_PC && damage && map[bl->m].flag.pvp)
|
||||
{
|
||||
if (flag & BF_SKILL) { //Skills get a different reduction than non-skills. [Skotlex]
|
||||
if (flag&BF_WEAPON)
|
||||
|
Loading…
x
Reference in New Issue
Block a user