Skip to content

Commit

Permalink
fix(Scripts/BlackTemple): Adjust order of damage calculations for Sha…
Browse files Browse the repository at this point in the history
…red Rule. (azerothcore#19849)

Init.
  • Loading branch information
heyitsbench authored Sep 2, 2024
1 parent e295dfd commit 2f00db3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@ struct boss_illidari_council_memberAI : public ScriptedAI
{
InstanceScript* instance = me->GetInstanceScript();

if (me->GetHealth() <= damage)
damage = me->GetHealth() - 1;

int32 damageTaken = damage;
Creature* target = instance->GetCreature(DATA_ILLIDARI_COUNCIL);

me->CastCustomSpell(target->ToUnit(), SPELL_SHARED_RULE_DMG, &damageTaken, &damageTaken, &damageTaken, true, nullptr, nullptr, me->GetGUID());

if (me->GetHealth() <= damage)
damage = me->GetHealth() - 1;
}

void KilledUnit(Unit*) override
Expand Down

0 comments on commit 2f00db3

Please sign in to comment.