Skip to content

Commit

Permalink
Don't return from Spell::DoSpellHitOnUnit if all effects were handled…
Browse files Browse the repository at this point in the history
… at launch

The check remains since the time when the method had nothing but a loop with HandleEffets and served only for optimization. Now it prevents another code from executing for some delayed spells.

refs cmangos/mangos-classic#194
  • Loading branch information
mityada authored and Phatcat committed Sep 10, 2016
1 parent 01e867a commit 308528e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spell.cpp
Expand Up @@ -1212,7 +1212,7 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)

void Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask)
{
if (!unit || !effectMask)
if (!unit)
return;

Unit* realCaster = GetAffectiveCaster();
Expand Down

0 comments on commit 308528e

Please sign in to comment.