fix(Scripts/BlackTemple): Ashtongue Defenders unable to attack Akama (#19435)

Update boss_shade_of_akama.cpp
This commit is contained in:
Gultask
2024-07-19 07:30:38 -03:00
committed by GitHub
parent 76e267e98a
commit f07da20a42

View File

@@ -81,7 +81,8 @@ enum Misc
ACTION_AKAMA_START_OUTRO = 1,
FACTION_DEFAULT = 1820,
FACTION_ENGAGE = 1868
FACTION_ENGAGE = 1868,
FACTION_DEFENDER = 1847
};
Position AkamaEngage = { 517.4877f, 400.79926f, 112.77704f };
@@ -364,11 +365,14 @@ struct npc_creature_generator_akama : public ScriptedAI
summon->GetMotionMaster()->MovePoint(POINT_ENGAGE, x, y, z);
}
break;
default:
summon->SetInCombatWithZone();
case NPC_ASHTONGUE_DEFENDER:
summon->SetFaction(FACTION_DEFENDER);
if (Creature* akama = instance->GetCreature(DATA_AKAMA_SHADE))
summon->AI()->AttackStart(akama);
break;
default:
summon->SetInCombatWithZone();
break;
}
}