Skip to content

Commit

Permalink
Blackwing Lair Razorgore Mind Exhaustion debuff along with responsive…
Browse files Browse the repository at this point in the history
… adds fix
  • Loading branch information
Viger authored and killerwife committed May 31, 2024
1 parent 0e32ab6 commit 4a3e284
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ void instance_blackwing_lair::OnCreatureRespawn(Creature* creature)
{
creature->SetNoLoot(true);
creature->SetCorpseDelay(5);
creature->SetInCombatWithZone();
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,20 @@ struct PossessRazorgore : public AuraScript
{
if (apply)
{
if (Unit* caster = aura->GetCaster())
caster->CastSpell(caster, SPELL_MIND_EXHAUSTION, TRIGGERED_OLD_TRIGGERED);
aura->GetTarget()->CastSpell(nullptr, SPELL_DRAGON_ORB, TRIGGERED_OLD_TRIGGERED);
}
else
{
Unit* target = aura->GetTarget();
target->RemoveAurasDueToSpell(SPELL_POSSESS_VISUAL);
target->RemoveAurasDueToSpell(SPELL_DRAGON_ORB);
if (Unit* caster = aura->GetCaster())
{
caster->CastSpell(caster, SPELL_MIND_EXHAUSTION, TRIGGERED_OLD_TRIGGERED);
}

if (Unit* target = aura->GetTarget())
{
target->RemoveAurasDueToSpell(SPELL_POSSESS_VISUAL);
target->RemoveAurasDueToSpell(SPELL_DRAGON_ORB);
}
}
}
}
Expand Down

0 comments on commit 4a3e284

Please sign in to comment.