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 committed by Arthur Ice
parent 9e26ebb9e5
commit 8cdcd189f5
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ takes more than the specified damage amount in a SINGLE hit, then fade the buff.
Kayen: Implemented SE_LimitSpellClass - Focus Limits spell to pre defined categories. (3=Cures,3=Offensive, 6=Lifetap)
Kayen: Changed SE_LimitMaxMana to SE_MeleeVulnerability - Weakness/Mitigation verse melee damage
(Despite lives SPA lable as the former it clearly is not what the effect does from all spell examples)
Kayen: Updated SE_BardAEDot to no longer damage target while target is moving (consistent with live)
== 06/25/2014 ==
Kayen: Updated SE_Hate (Renamed from SE_Hate2) to now properly work for instant +/- hate spells.

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) {