fix(Scripts/BlackTemple): Adjust order of damage calculations for Shared Rule. (#19849)

Init.
This commit is contained in:
Benjamin Jackson
2024-09-02 04:34:30 -04:00
committed by GitHub
parent e295dfdea7
commit 2f00db3418

View File

@@ -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