Browse Source

Corrected Spiritual Sphere Absorption and Cursed Circle interaction (fixes #1514)
* Spiritual Sphere Absorption will fail to go through if the caster is captured in Cursed Circle.

aleos89 8 years ago
parent
commit
9a009bf316
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/map/status.c

+ 3 - 0
src/map/status.c

@@ -2034,6 +2034,9 @@ bool status_check_skilluse(struct block_list *src, struct block_list *target, ui
 			return false;
 		}
 
+		if (flag == 1 && sc->data[SC_CURSEDCIRCLE_TARGET] && skill_id == MO_ABSORBSPIRITS) // Absorb Spirits fails to go through
+			return false;
+
 		if (skill_id != RK_REFRESH && sc->opt1 && !(sc->opt1 == OPT1_CRYSTALIZE && src->type == BL_MOB) && sc->opt1 != OPT1_BURNING && skill_id != SR_GENTLETOUCH_CURE) { // Stuned/Frozen/etc
 			if (flag != 1) // Can't cast, casted stuff can't damage.
 				return false;