Skip to content

Commit

Permalink
make razorgore vanilla blizzlike
Browse files Browse the repository at this point in the history
  • Loading branch information
Viger authored and killerwife committed Nov 10, 2024
1 parent 1690d69 commit 8b38bf4
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,15 @@ struct PossessRazorgore : public AuraScript
if (aura->GetEffIndex() == EFFECT_INDEX_0)
{
if (apply)
{
aura->GetTarget()->CastSpell(nullptr, SPELL_DRAGON_ORB, TRIGGERED_OLD_TRIGGERED);
}
else
{
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
{
if (Unit* target = aura->GetTarget())
{
target->RemoveAurasDueToSpell(SPELL_POSSESS_VISUAL);
Expand Down

0 comments on commit 8b38bf4

Please sign in to comment.