Corrected Absorb Spirit Sphere on self (#3689)
* Fixes #3534. * Absorb Spirit Sphere should work on self on all map types. Thanks to @FriggRM!
This commit is contained in:
parent
64d0da45ca
commit
eafb1cb7f9
@ -7053,7 +7053,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
|
||||
|
||||
case MO_ABSORBSPIRITS:
|
||||
i = 0;
|
||||
if (dstsd && battle_check_target(src, bl, BCT_SELF|BCT_ENEMY) > 0 && (map_flag_vs(src->m) || (sd && sd->duel_group && sd->duel_group == dstsd->duel_group)) && // Only works on self and enemies
|
||||
if (dstsd && (battle_check_target(src, bl, BCT_SELF) > 0 || (battle_check_target(src, bl, BCT_ENEMY) > 0 && (map_flag_vs(src->m) || (sd && sd->duel_group && sd->duel_group == dstsd->duel_group)))) && // Only works on self and enemies
|
||||
((dstsd->class_&MAPID_BASEMASK) != MAPID_GUNSLINGER || (dstsd->class_&MAPID_UPPERMASK) != MAPID_REBELLION)) { // split the if for readability, and included gunslingers in the check so that their coins cannot be removed [Reddozen]
|
||||
if (dstsd->spiritball > 0) {
|
||||
i = dstsd->spiritball * 7;
|
||||
|
Loading…
x
Reference in New Issue
Block a user