Skip to content

Commit

Permalink
Regression fix: Snare/Root not slowing (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
NetDwarf authored Aug 21, 2020
1 parent 576334c commit adbeaeb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions GameServer/spells/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2664,8 +2664,12 @@ public virtual void ApplyEffectOnTarget(GameLiving target, double effectiveness)
m_lastAttackData = ad;

// Treat non-damaging effects as attacks to trigger an immediate response and BAF
if (target is GameNPC npc)
npc.OnAttackedByEnemy(ad);
if (ad.Damage == 0 && ad.Target is GameNPC)
{
IOldAggressiveBrain aggroBrain = ((GameNPC)ad.Target).Brain as IOldAggressiveBrain;
if (aggroBrain != null)
aggroBrain.AddToAggroList(Caster, 1);
}
}
}

Expand Down

0 comments on commit adbeaeb

Please sign in to comment.