Scripts/Icecrown Citadel: Fixed possible crash for Necrotic Plague (if cast outside of ICC)
Closes #9188
This commit is contained in:
1 parent
1ff184dbab
commit
20cd6cfc61
1 file changed
+2
-1
@@ -2178,7 +2178,8 @@ class spell_the_lich_king_necrotic_plague_jump : public SpellScriptLoader
|
||||
void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
caster->GetAI()->SetData(DATA_PLAGUE_STACK, GetStackAmount());
|
||||
if (caster->GetAI())
|
||||
caster->GetAI()->SetData(DATA_PLAGUE_STACK, GetStackAmount());
|
||||
}
|
||||
|
||||
void OnRemove(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
|
||||
|
||||
Reference in new issue
Block a user