mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Scripts/TotFW: updated Conclave of Wind script to new format and fixed remaining flaws with the platform selector
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -42,16 +42,6 @@ ObjectData const gameObjectData[] =
|
||||
{ 0, 0 } // End
|
||||
};
|
||||
|
||||
AreaBoundary const* anshalCircle = new CircleBoundary(Position(-47.953f, 1053.439f), MAX_HOME_POSITION_DISTANCE);
|
||||
AreaBoundary const* nezirCircle = new CircleBoundary(Position(189.393f, 812.568f), MAX_HOME_POSITION_DISTANCE);
|
||||
AreaBoundary const* rohashCircle = new CircleBoundary(Position(-51.463f, 576.250f), MAX_HOME_POSITION_DISTANCE);
|
||||
AreaBoundary const* anshalNezirBoundary = new BoundaryUnionBoundary(anshalCircle, nezirCircle);
|
||||
|
||||
BossBoundaryData const boundaries =
|
||||
{
|
||||
{ DATA_CONCLAVE_OF_WIND, new BoundaryUnionBoundary(anshalNezirBoundary, rohashCircle) }
|
||||
};
|
||||
|
||||
class instance_throne_of_the_four_winds : public InstanceMapScript
|
||||
{
|
||||
public:
|
||||
@@ -64,7 +54,6 @@ class instance_throne_of_the_four_winds : public InstanceMapScript
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
LoadObjectData(creatureData, gameObjectData);
|
||||
LoadBossBoundaries(boundaries);
|
||||
Initialize();
|
||||
}
|
||||
|
||||
@@ -85,6 +74,10 @@ class instance_throne_of_the_four_winds : public InstanceMapScript
|
||||
case BOSS_NEZIR:
|
||||
case BOSS_ROHASH:
|
||||
break;
|
||||
case NPC_RAVENOUS_CREEPER:
|
||||
if (Creature* anshal = GetCreature(DATA_ANSHAL))
|
||||
anshal->AI()->JustSummoned(creature);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -109,13 +102,13 @@ class instance_throne_of_the_four_winds : public InstanceMapScript
|
||||
if (state == IN_PROGRESS)
|
||||
{
|
||||
if (Creature* anshal = GetCreature(DATA_ANSHAL))
|
||||
anshal->SetInCombatWithZone();
|
||||
anshal->AI()->DoZoneInCombat();
|
||||
|
||||
if (Creature* nezir = GetCreature(DATA_NEZIR))
|
||||
nezir->SetInCombatWithZone();
|
||||
nezir->AI()->DoZoneInCombat();
|
||||
|
||||
if (Creature* rohash = GetCreature(DATA_ROHASH))
|
||||
rohash->SetInCombatWithZone();
|
||||
rohash->AI()->DoZoneInCombat();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -65,12 +65,12 @@ enum TFWMisc
|
||||
{
|
||||
};
|
||||
|
||||
#define MAX_HOME_POSITION_DISTANCE 65.0f
|
||||
|
||||
template <class AI, class T>
|
||||
inline AI* GetThroneOfTheFourWindsAI(T* obj)
|
||||
{
|
||||
return GetInstanceAI<AI>(obj, TotFWScriptName);
|
||||
}
|
||||
|
||||
#define RegisterThroneOfTheFourWindsCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetThroneOfTheFourWindsAI)
|
||||
|
||||
#endif // THRONE_OF_THE_FOUR_WINDS_H_
|
||||
|
||||
Reference in New Issue
Block a user