fix(Scripts/BlackTemple): Ashtongue Defenders unable to attack Akama (#19435)
Update boss_shade_of_akama.cpp
This commit is contained in:
@@ -81,7 +81,8 @@ enum Misc
|
|||||||
ACTION_AKAMA_START_OUTRO = 1,
|
ACTION_AKAMA_START_OUTRO = 1,
|
||||||
|
|
||||||
FACTION_DEFAULT = 1820,
|
FACTION_DEFAULT = 1820,
|
||||||
FACTION_ENGAGE = 1868
|
FACTION_ENGAGE = 1868,
|
||||||
|
FACTION_DEFENDER = 1847
|
||||||
};
|
};
|
||||||
|
|
||||||
Position AkamaEngage = { 517.4877f, 400.79926f, 112.77704f };
|
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);
|
summon->GetMotionMaster()->MovePoint(POINT_ENGAGE, x, y, z);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
case NPC_ASHTONGUE_DEFENDER:
|
||||||
summon->SetInCombatWithZone();
|
summon->SetFaction(FACTION_DEFENDER);
|
||||||
if (Creature* akama = instance->GetCreature(DATA_AKAMA_SHADE))
|
if (Creature* akama = instance->GetCreature(DATA_AKAMA_SHADE))
|
||||||
summon->AI()->AttackStart(akama);
|
summon->AI()->AttackStart(akama);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
summon->SetInCombatWithZone();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user