Core/Scripts: Fixed build of boss_* scripts
This commit is contained in:
1 parent
6ce0a3107d
commit
a3d8f1d879
88 files changed
+453
-508
No files matched your search
+3
-3
@@ -208,7 +208,7 @@ public:
|
||||
}
|
||||
|
||||
if (uiType <= 3)
|
||||
Start(false, true, 0, NULL);
|
||||
Start(false, true);
|
||||
}
|
||||
|
||||
void WaypointReached(uint32 waypointId) override
|
||||
@@ -769,7 +769,7 @@ public:
|
||||
uiMultiShotTimer = 0;
|
||||
uiLightningArrowsTimer = 7000;
|
||||
|
||||
uiTargetGUID = 0;
|
||||
uiTargetGUID.Clear();
|
||||
|
||||
bShoot = false;
|
||||
}
|
||||
@@ -783,7 +783,7 @@ public:
|
||||
uint32 uiMultiShotTimer;
|
||||
uint32 uiLightningArrowsTimer;
|
||||
|
||||
uint64 uiTargetGUID;
|
||||
ObjectGuid uiTargetGUID;
|
||||
|
||||
bool bShoot;
|
||||
bool bDone;
|
||||
|
||||
+1
-1
@@ -483,7 +483,7 @@ class boss_toc_champion_controller : public CreatureScript
|
||||
SummonChampions((Team)uiData);
|
||||
break;
|
||||
case 1:
|
||||
for (std::list<uint64>::iterator i = _summons.begin(); i != _summons.end(); ++i)
|
||||
for (SummonList::iterator i = _summons.begin(); i != _summons.end(); ++i)
|
||||
{
|
||||
if (Creature* temp = ObjectAccessor::GetCreature(*me, *i))
|
||||
{
|
||||
|
||||
+5
-6
@@ -294,7 +294,6 @@ class npc_snobold_vassal : public CreatureScript
|
||||
{
|
||||
npc_snobold_vassalAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
_targetGUID = 0;
|
||||
_targetDied = false;
|
||||
_instance = creature->GetInstanceScript();
|
||||
_instance->SetData(DATA_SNOBOLD_COUNT, INCREASE);
|
||||
@@ -305,7 +304,7 @@ class npc_snobold_vassal : public CreatureScript
|
||||
_events.ScheduleEvent(EVENT_BATTER, 5*IN_MILLISECONDS);
|
||||
_events.ScheduleEvent(EVENT_HEAD_CRACK, 25*IN_MILLISECONDS);
|
||||
|
||||
_targetGUID = 0;
|
||||
_targetGUID.Clear();
|
||||
_targetDied = false;
|
||||
|
||||
//Workaround for Snobold
|
||||
@@ -442,7 +441,7 @@ class npc_snobold_vassal : public CreatureScript
|
||||
private:
|
||||
EventMap _events;
|
||||
InstanceScript* _instance;
|
||||
uint64 _targetGUID;
|
||||
ObjectGuid _targetGUID;
|
||||
bool _targetDied;
|
||||
};
|
||||
|
||||
@@ -877,7 +876,7 @@ class boss_icehowl : public CreatureScript
|
||||
_movementStarted = false;
|
||||
_movementFinish = false;
|
||||
_trampleCast = false;
|
||||
_trampleTargetGUID = 0;
|
||||
_trampleTargetGUID.Clear();
|
||||
_trampleTargetX = 0;
|
||||
_trampleTargetY = 0;
|
||||
_trampleTargetZ = 0;
|
||||
@@ -1077,7 +1076,7 @@ class boss_icehowl : public CreatureScript
|
||||
if (Player* target = ObjectAccessor::GetPlayer(*me, _trampleTargetGUID))
|
||||
Talk(EMOTE_TRAMPLE_START, target);
|
||||
me->GetMotionMaster()->MoveCharge(_trampleTargetX, _trampleTargetY, _trampleTargetZ, 42, 1);
|
||||
me->SetTarget(0);
|
||||
me->SetTarget(ObjectGuid::Empty);
|
||||
_stage = 5;
|
||||
break;
|
||||
case 5:
|
||||
@@ -1134,7 +1133,7 @@ class boss_icehowl : public CreatureScript
|
||||
|
||||
private:
|
||||
float _trampleTargetX, _trampleTargetY, _trampleTargetZ;
|
||||
uint64 _trampleTargetGUID;
|
||||
ObjectGuid _trampleTargetGUID;
|
||||
bool _movementStarted;
|
||||
bool _movementFinish;
|
||||
bool _trampleCast;
|
||||
|
||||
Reference in new issue
Block a user