Updated SE_BardAEDot to no longer damage target while target is moving (consistent with live)

This commit is contained in:
KayenEQ
2014-07-03 11:00:23 -04:00
parent 0d2127f874
commit 28493488ac
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -2328,6 +2328,9 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial)
// SE_CurrentHP is calculated at first tick if its a dot/buff
if (buffslot >= 0)
break;
//This effect does no damage if target is moving.
if (IsMoving())
break;
// for offensive spells check if we have a spell rune on
int32 dmg = effect_value;
@@ -3391,7 +3394,7 @@ void Mob::DoBuffTic(uint16 spell_id, int slot, uint32 ticsremaining, uint8 caste
{
effect_value = CalcSpellEffectValue(spell_id, i, caster_level, caster);
if (invulnerable || /*effect_value > 0 ||*/ DivineAura())
if (IsMoving() || invulnerable || /*effect_value > 0 ||*/ DivineAura())
break;
if(effect_value < 0) {