Scripts/Blackrock Depths: Fixed reseting of Moira after Emperor Dagran is dead. Closes #2658
This commit is contained in:
1 parent
8166e338ad
commit
fb2fe345bf
4 files changed
+25
-8
No files matched your search
@@ -780,12 +780,8 @@ class spell_assembly_meltdown : public SpellScriptLoader
|
||||
|
||||
void HandleInstaKill(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
if (InstanceScript* instance = caster->GetInstanceScript())
|
||||
if (Creature* Steelbreaker = ObjectAccessor::GetCreature(*caster, instance->GetData64(BOSS_STEELBREAKER)))
|
||||
if (InstanceScript* instance = GetCaster()->GetInstanceScript())
|
||||
if (Creature* Steelbreaker = ObjectAccessor::GetCreature(*GetCaster(), instance->GetData64(BOSS_STEELBREAKER)))
|
||||
Steelbreaker->AI()->DoAction(ACTION_ADD_CHARGE);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user