mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Scripts/BlackTemple): Adjust order of damage calculations for Shared Rule. (#19849)
Init.
This commit is contained in:
@@ -254,13 +254,13 @@ struct boss_illidari_council_memberAI : public ScriptedAI
|
|||||||
{
|
{
|
||||||
InstanceScript* instance = me->GetInstanceScript();
|
InstanceScript* instance = me->GetInstanceScript();
|
||||||
|
|
||||||
if (me->GetHealth() <= damage)
|
|
||||||
damage = me->GetHealth() - 1;
|
|
||||||
|
|
||||||
int32 damageTaken = damage;
|
int32 damageTaken = damage;
|
||||||
Creature* target = instance->GetCreature(DATA_ILLIDARI_COUNCIL);
|
Creature* target = instance->GetCreature(DATA_ILLIDARI_COUNCIL);
|
||||||
|
|
||||||
me->CastCustomSpell(target->ToUnit(), SPELL_SHARED_RULE_DMG, &damageTaken, &damageTaken, &damageTaken, true, nullptr, nullptr, me->GetGUID());
|
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
|
void KilledUnit(Unit*) override
|
||||||
|
|||||||
Reference in New Issue
Block a user