diff options
author | Gacko <gacko28@gmx.de> | 2012-12-22 16:42:46 +0100 |
---|---|---|
committer | Gacko <gacko28@gmx.de> | 2012-12-22 16:42:46 +0100 |
commit | 8cbb3763dd3f6fb043c5c60bb81014349125b942 (patch) | |
tree | 900cdf888c7f096c102124e9c9ad86413bcc7374 | |
parent | aabfa3afae128e5cc23852d6b9ddef145c6e360e (diff) |
Core/Spell: Shadows Fate crash fix
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 05dd8656d9c..92629d286bc 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -5598,18 +5598,18 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere ok = true; } - // The spell usually only hits one target, but it should hit every player - // which applied Shadows Fate at least once to the victim. - if (target->GetTypeId() == TYPEID_PLAYER && target->ToPlayer()->GetQuestStatus(24547) == QUEST_STATUS_INCOMPLETE) + // TODO: The aura should be applieable by multiple players + Unit* caster = triggeredByAura->GetCaster(); + if (caster && caster->GetTypeId() == TYPEID_PLAYER && caster->ToPlayer()->GetQuestStatus(24547) == QUEST_STATUS_INCOMPLETE) { - triggered_spell_id = 71203; + CastSpell(caster, 71203, true); ok = true; } if (!ok) return false; - break; + return true; } // Essence of the Blood Queen case 70871: |