Core/Scripts: Changed GetGUID/SetGUID script hooks to operate on ObjectGuid class

Fixed compile for boss scripts starting with letters B, C and D
This commit is contained in:
Shauren committed 2014-09-15 00:23:47 +02:00
1 parent 56f46e3ce5
commit 6ce0a3107d
27 files changed
+89 -106

No files matched your search

+2 -2
View File
@@ -137,8 +137,8 @@ class UnitAI
virtual void DoAction(int32 /*param*/) { }
virtual uint32 GetData(uint32 /*id = 0*/) const { return 0; }
virtual void SetData(uint32 /*id*/, uint32 /*value*/) { }
virtual void SetGUID(uint64 /*guid*/, int32 /*id*/ = 0) { }
virtual uint64 GetGUID(int32 /*id*/ = 0) const { return 0; }
virtual void SetGUID(ObjectGuid /*guid*/, int32 /*id*/ = 0) { }
virtual ObjectGuid GetGUID(int32 /*id*/ = 0) const { return ObjectGuid::Empty; }
Unit* SelectTarget(SelectAggroTarget targetType, uint32 position = 0, float dist = 0.0f, bool playerOnly = false, int32 aura = 0);
// Select the targets satisfying the predicate.
+2 -2
View File
@@ -694,9 +694,9 @@ void SmartAI::SetData(uint32 id, uint32 value)
GetScript()->ProcessEventsFor(SMART_EVENT_DATA_SET, NULL, id, value);
}
void SmartAI::SetGUID(uint64 /*guid*/, int32 /*id*/) { }
void SmartAI::SetGUID(ObjectGuid /*guid*/, int32 /*id*/) { }
uint64 SmartAI::GetGUID(int32 /*id*/) const
ObjectGuid SmartAI::GetGUID(int32 /*id*/) const
{
return 0;
}
+2 -2
View File
@@ -154,10 +154,10 @@ class SmartAI : public CreatureAI
void SetData(uint32 id, uint32 value) override;
// Used in scripts to share variables
void SetGUID(uint64 guid, int32 id = 0) override;
void SetGUID(ObjectGuid guid, int32 id = 0) override;
// Used in scripts to share variables
uint64 GetGUID(int32 id = 0) const override;
ObjectGuid GetGUID(int32 id = 0) const override;
//core related
static int Permissible(const Creature*);
@@ -300,17 +300,17 @@ public:
struct npc_unworthy_initiate_anchorAI : public PassiveAI
{
npc_unworthy_initiate_anchorAI(Creature* creature) : PassiveAI(creature), prisonerGUID(0) { }
npc_unworthy_initiate_anchorAI(Creature* creature) : PassiveAI(creature) { }
uint64 prisonerGUID;
ObjectGuid prisonerGUID;
void SetGUID(uint64 guid, int32 /*id*/) override
void SetGUID(ObjectGuid guid, int32 /*id*/) override
{
if (!prisonerGUID)
prisonerGUID = guid;
}
uint64 GetGUID(int32 /*id*/) const override
ObjectGuid GetGUID(int32 /*id*/) const override
{
return prisonerGUID;
}
@@ -1148,7 +1148,7 @@ class npc_scarlet_miner : public CreatureScript
}
}
void SetGUID(uint64 guid, int32 /*id = 0*/) override
void SetGUID(ObjectGuid guid, int32 /*id = 0*/) override
{
InitWaypoint();
Start(false, false, guid);
@@ -76,8 +76,8 @@ class boss_buru : public CreatureScript
{
BossAI::EnterEvadeMode();
for (std::list<uint64>::iterator i = Eggs.begin(); i != Eggs.end(); ++i)
if (Creature* egg = me->GetMap()->GetCreature(*Eggs.begin()))
for (ObjectGuid eggGuid : Eggs)
if (Creature* egg = me->GetMap()->GetCreature(eggGuid))
egg->Respawn();
Eggs.clear();
@@ -127,7 +127,7 @@ class boss_buru : public CreatureScript
}
}
void ManageRespawn(uint64 EggGUID)
void ManageRespawn(ObjectGuid EggGUID)
{
ChaseNewVictim();
Eggs.push_back(EggGUID);
@@ -183,8 +183,8 @@ class boss_buru : public CreatureScript
DoMeleeAttackIfReady();
}
private:
GuidList Eggs;
uint8 _phase;
std::list<uint64> Eggs;
};
CreatureAI* GetAI(Creature* creature) const override
@@ -307,7 +307,7 @@ public:
me->SetReactState(REACT_PASSIVE);
//Remove any target
me->SetTarget(0);
me->SetTarget(ObjectGuid::Empty);
//Select random target for dark beam to start on
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
@@ -384,7 +384,7 @@ public:
//Transition phase
case PHASE_CTHUN_TRANSITION:
//Remove any target
me->SetTarget(0);
me->SetTarget(ObjectGuid::Empty);
me->SetHealth(0);
me->SetVisible(false);
break;
@@ -420,7 +420,7 @@ public:
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
//Remove Target field
me->SetTarget(0);
me->SetTarget(ObjectGuid::Empty);
//Death animation/respawning;
instance->SetData(DATA_CTHUN_PHASE, PHASE_CTHUN_TRANSITION);
@@ -475,7 +475,7 @@ public:
PhaseTimer = 10000; //Emerge in 10 seconds
//No hold player for transition
HoldPlayer = 0;
HoldPlayer.Clear();
//Body Phase
EyeTentacleTimer = 30000;
@@ -485,7 +485,7 @@ public:
StomachAcidTimer = 4000; //Every 4 seconds
StomachEnterTimer = 10000; //Every 10 seconds
StomachEnterVisTimer = 0; //Always 3.5 seconds after Stomach Enter Timer
StomachEnterTarget = 0; //Target to be teleported to stomach
StomachEnterTarget.Clear(); //Target to be teleported to stomach
}
InstanceScript* instance;
@@ -499,7 +499,7 @@ public:
//-------------------
//Phase transition
uint64 HoldPlayer;
ObjectGuid HoldPlayer;
//Body Phase
uint32 EyeTentacleTimer;
@@ -509,10 +509,10 @@ public:
uint32 StomachAcidTimer;
uint32 StomachEnterTimer;
uint32 StomachEnterVisTimer;
uint64 StomachEnterTarget;
ObjectGuid StomachEnterTarget;
//Stomach map, bool = true then in stomach
std::unordered_map<uint64, bool> Stomach_Map;
std::unordered_map<ObjectGuid, bool> Stomach_Map;
void Reset() override
{
@@ -548,7 +548,7 @@ public:
if (Stomach_Map.empty())
return NULL;
std::unordered_map<uint64, bool>::const_iterator i = Stomach_Map.begin();
std::unordered_map<ObjectGuid, bool>::const_iterator i = Stomach_Map.begin();
std::list<Unit*> temp;
std::list<Unit*>::const_iterator j;
@@ -610,7 +610,7 @@ public:
return;
}
me->SetTarget(0);
me->SetTarget(ObjectGuid::Empty);
uint32 currentPhase = instance->GetData(DATA_CTHUN_PHASE);
if (currentPhase == PHASE_CTHUN_STOMACH || currentPhase == PHASE_CTHUN_WEAK)
@@ -680,7 +680,7 @@ public:
//Body Phase
case PHASE_CTHUN_STOMACH:
//Remove Target field
me->SetTarget(0);
me->SetTarget(ObjectGuid::Empty);
//Weaken
if (FleshTentaclesKilled > 1)
@@ -692,7 +692,7 @@ public:
DoCast(me, SPELL_PURPLE_COLORATION, true);
std::unordered_map<uint64, bool>::iterator i = Stomach_Map.begin();
std::unordered_map<ObjectGuid, bool>::iterator i = Stomach_Map.begin();
//Kick all players out of stomach
while (i != Stomach_Map.end())
@@ -724,7 +724,7 @@ public:
if (StomachAcidTimer <= diff)
{
//Apply aura to all players in stomach
std::unordered_map<uint64, bool>::iterator i = Stomach_Map.begin();
std::unordered_map<ObjectGuid, bool>::iterator i = Stomach_Map.begin();
while (i != Stomach_Map.end())
{
@@ -786,7 +786,7 @@ public:
DoTeleportPlayer(unit, STOMACH_X, STOMACH_Y, STOMACH_Z, STOMACH_O);
}
StomachEnterTarget = 0;
StomachEnterTarget.Clear();
StomachEnterVisTimer = 0;
} else StomachEnterVisTimer -= diff;
}
@@ -913,7 +913,6 @@ public:
MindflayTimer = 500;
KillSelfTimer = 35000;
Portal = 0;
if (Creature* pPortal = me->SummonCreature(NPC_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
@@ -925,7 +924,7 @@ public:
uint32 MindflayTimer;
uint32 KillSelfTimer;
uint64 Portal;
ObjectGuid Portal;
void JustDied(Unit* /*killer*/) override
{
@@ -995,7 +994,6 @@ public:
SetCombatMovement(false);
Portal = 0;
if (Creature* pPortal = me->SummonCreature(NPC_SMALL_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
@@ -1006,7 +1004,7 @@ public:
uint32 GroundRuptureTimer;
uint32 HamstringTimer;
uint32 EvadeTimer;
uint64 Portal;
ObjectGuid Portal;
void JustDied(Unit* /*killer*/) override
{
@@ -1111,7 +1109,6 @@ public:
SetCombatMovement(false);
Portal = 0;
if (Creature* pPortal = me->SummonCreature(NPC_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
@@ -1123,7 +1120,7 @@ public:
uint32 ThrashTimer;
uint32 HamstringTimer;
uint32 EvadeTimer;
uint64 Portal;
ObjectGuid Portal;
void JustDied(Unit* /*killer*/) override
{
@@ -1233,7 +1230,6 @@ public:
SetCombatMovement(false);
Portal = 0;
if (Creature* pPortal = me->SummonCreature(NPC_GIANT_PORTAL, *me, TEMPSUMMON_CORPSE_DESPAWN))
{
pPortal->SetReactState(REACT_PASSIVE);
@@ -1242,7 +1238,7 @@ public:
}
uint32 BeamTimer;
uint64 Portal;
ObjectGuid Portal;
void JustDied(Unit* /*killer*/) override
{
@@ -302,7 +302,7 @@ class npc_prince_taldaram_flame_sphere : public CreatureScript
_events.ScheduleEvent(EVENT_DESPAWN, 13 * IN_MILLISECONDS);
}
void SetGUID(uint64 guid, int32 /*id = 0*/) override
void SetGUID(ObjectGuid guid, int32 /*id = 0*/) override
{
_flameSphereTargetGUID = guid;
}
@@ -364,7 +364,7 @@ class npc_prince_taldaram_flame_sphere : public CreatureScript
private:
EventMap _events;
uint64 _flameSphereTargetGUID;
ObjectGuid _flameSphereTargetGUID;
};
CreatureAI* GetAI(Creature* creature) const override
@@ -81,7 +81,7 @@ public:
struct boss_black_knightAI : public ScriptedAI
{
boss_black_knightAI(Creature* creature) : ScriptedAI(creature)
boss_black_knightAI(Creature* creature) : ScriptedAI(creature), summons(creature)
{
Initialize();
instance = creature->GetInstanceScript();
@@ -110,7 +110,7 @@ public:
InstanceScript* instance;
std::list<uint64> SummonList;
SummonList summons;
bool bEventInProgress;
bool bEvent;
@@ -132,33 +132,24 @@ public:
void Reset() override
{
RemoveSummons();
summons.DespawnAll();
me->SetDisplayId(me->GetNativeDisplayId());
me->ClearUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED);
Initialize();
}
void RemoveSummons()
{
if (SummonList.empty())
return;
for (std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr)
{
if (Creature* temp = ObjectAccessor::GetCreature(*me, *itr))
if (temp)
temp->DisappearAndDie();
}
SummonList.clear();
}
void JustSummoned(Creature* summon) override
{
SummonList.push_back(summon->GetGUID());
summons.Summon(summon);
summon->AI()->AttackStart(me->GetVictim());
}
void SummonedCreatureDespawn(Creature* summon) override
{
summons.Despawn(summon);
}
void UpdateAI(uint32 uiDiff) override
{
//Return since we have no target
@@ -281,7 +272,7 @@ public:
uiDamage = 0;
me->SetHealth(0);
me->AddUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED);
RemoveSummons();
summons.DespawnAll();
switch (uiPhase)
{
case PHASE_UNDEAD:
@@ -367,20 +358,16 @@ public:
{
npc_black_knight_skeletal_gryphonAI(Creature* creature) : npc_escortAI(creature)
{
Start(false, true, 0, NULL);
Start(false, true);
}
void WaypointReached(uint32 /*waypointId*/) override
{
}
void WaypointReached(uint32 /*waypointId*/) override { }
void UpdateAI(uint32 uiDiff) override
{
npc_escortAI::UpdateAI(uiDiff);
if (!UpdateVictim())
return;
UpdateVictim();
}
};
@@ -301,7 +301,7 @@ class boss_devourer_of_souls : public CreatureScript
me->SetReactState(REACT_PASSIVE);
//Remove any target
me->SetTarget(0);
me->SetTarget(ObjectGuid::Empty);
me->GetMotionMaster()->Clear();
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);
@@ -330,7 +330,7 @@ class boss_rimefang : public CreatureScript
_EnterEvadeMode();
}
void SetGUID(uint64 guid, int32 type) override
void SetGUID(ObjectGuid guid, int32 type) override
{
if (type == GUID_HOARFROST)
{
@@ -199,7 +199,7 @@ public:
lSummons.Summon(summoned);
}
void SetGUID(uint64 guid, int32 type) override
void SetGUID(ObjectGuid guid, int32 type) override
{
if (type == DATA_SNAKES_WHYD_IT_HAVE_TO_BE_SNAKES)
lWrappedPlayers.insert(guid);
@@ -335,12 +335,12 @@ class boss_blood_council_controller : public CreatureScript
private:
struct InvocationData
{
uint64 guid;
ObjectGuid guid;
uint32 spellId;
uint32 textId;
uint32 visualSpell;
InvocationData(uint64 _guid, uint32 _spellId, uint32 _textId, uint32 _visualSpell)
InvocationData(ObjectGuid _guid, uint32 _spellId, uint32 _textId, uint32 _visualSpell)
{
guid = _guid;
spellId = _spellId;
@@ -348,7 +348,7 @@ class boss_blood_council_controller : public CreatureScript
visualSpell = _visualSpell;
}
InvocationData() : guid(0), spellId(0), textId(0), visualSpell(0) { }
InvocationData() : spellId(0), textId(0), visualSpell(0) { }
} _invocationOrder[3];
uint32 _invocationStage;
@@ -1167,13 +1167,13 @@ class npc_ball_of_flame : public CreatureScript
me->RemoveAurasDueToSpell(SPELL_BALL_OF_FLAMES_PERIODIC);
DoCast(me, SPELL_FLAMES);
_despawnTimer = 1000;
_chaseGUID = 0;
_chaseGUID.Clear();
}
}
void SetGUID(uint64 guid, int32 /*type*/) override
void SetGUID(ObjectGuid guid, int32 /*type*/) override
{
_chaseGUID.Set(guid);
_chaseGUID = guid;
}
void DoAction(int32 action) override
@@ -148,7 +148,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
void Initialize()
{
_offtankGUID = 0;
_offtankGUID.Clear();
_creditBloodQuickening = false;
_killMinchar = false;
}
@@ -210,7 +210,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
minchar->RemoveByteFlag(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_ALWAYS_STAND);
minchar->SetCanFly(false);
minchar->RemoveAllAuras();
minchar->GetMotionMaster()->MoveCharge(4629.3711f, 2782.6089f, 401.5301f, SPEED_CHARGE/3.0f);
minchar->GetMotionMaster()->MoveCharge(4629.3711f, 2782.6089f, 401.5301f, SPEED_CHARGE / 3.0f);
}
}
}
@@ -278,7 +278,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
Talk(SAY_KILL);
}
void SetGUID(uint64 guid, int32 type = 0) override
void SetGUID(ObjectGuid guid, int32 type = 0) override
{
switch (type)
{
@@ -390,7 +390,7 @@ class boss_blood_queen_lana_thel : public CreatureScript
}
}
else
_offtankGUID = 0;
_offtankGUID.Clear();
}
events.ScheduleEvent(EVENT_BLOOD_MIRROR, 2500, EVENT_GROUP_CANCELLABLE);
break;
@@ -458,12 +458,12 @@ class boss_blood_queen_lana_thel : public CreatureScript
DoMeleeAttackIfReady();
}
bool WasVampire(uint64 guid)
bool WasVampire(ObjectGuid guid) const
{
return _vampires.count(guid) != 0;
}
bool WasBloodbolted(uint64 guid)
bool WasBloodbolted(ObjectGuid guid) const
{
return _bloodboltedPlayers.count(guid) != 0;
}
@@ -501,9 +501,9 @@ class boss_blood_queen_lana_thel : public CreatureScript
return Trinity::Containers::SelectRandomContainerElement(tempTargets);
}
std::set<uint64> _vampires;
std::set<uint64> _bloodboltedPlayers;
uint64 _offtankGUID;
GuidSet _vampires;
GuidSet _bloodboltedPlayers;
ObjectGuid _offtankGUID;
bool _creditBloodQuickening;
bool _killMinchar;
};
@@ -554,7 +554,7 @@ class spell_blood_queen_vampiric_bite : public SpellScriptLoader
return;
uint32 spellId = sSpellMgr->GetSpellIdForDifficulty(SPELL_FRENZIED_BLOODTHIRST, GetCaster());
GetCaster()->RemoveAura(spellId, 0, 0, AURA_REMOVE_BY_ENEMY_SPELL);
GetCaster()->RemoveAura(spellId, ObjectGuid::Empty, 0, AURA_REMOVE_BY_ENEMY_SPELL);
GetCaster()->CastSpell(GetCaster(), SPELL_ESSENCE_OF_THE_BLOOD_QUEEN_PLR, TRIGGERED_FULL_MASK);
// Shadowmourne questline
@@ -796,7 +796,7 @@ class npc_gunship : public CreatureScript
}
}
void SetGUID(uint64 guid, int32 id/* = 0*/) override
void SetGUID(ObjectGuid guid, int32 id/* = 0*/) override
{
if (id != ACTION_SHIP_VISITS)
return;
@@ -554,7 +554,7 @@ class boss_lady_deathwhisper : public CreatureScript
summon->CastSpell(summon, SPELL_TELEPORT_VISUAL);
}
void SetGUID(uint64 guid, int32 id/* = 0*/) override
void SetGUID(ObjectGuid guid, int32 id/* = 0*/) override
{
if (id != GUID_CULTIST)
return;
@@ -289,7 +289,7 @@ class boss_lord_marrowgar : public CreatureScript
return &_coldflameLastPos;
}
uint64 GetGUID(int32 type /*= 0 */) const override
ObjectGuid GetGUID(int32 type /*= 0 */) const override
{
switch (type)
{
@@ -310,7 +310,7 @@ class boss_lord_marrowgar : public CreatureScript
return 0LL;
}
void SetGUID(uint64 guid, int32 type /*= 0 */) override
void SetGUID(ObjectGuid guid, int32 type /*= 0 */) override
{
switch (type)
{
@@ -573,7 +573,7 @@ class npc_ice_tomb : public CreatureScript
me->SetReactState(REACT_PASSIVE);
}
void SetGUID(uint64 guid, int32 type/* = 0 */) override
void SetGUID(ObjectGuid guid, int32 type/* = 0 */) override
{
if (type == DATA_TRAPPED_PLAYER)
{
@@ -1518,7 +1518,7 @@ class npc_valkyr_shadowguard : public CreatureScript
}
}
void SetGUID(uint64 guid, int32 /* = 0*/) override
void SetGUID(ObjectGuid guid, int32 /* = 0*/) override
{
_grabbedPlayer = guid;
}
@@ -1000,7 +1000,7 @@ class npc_crok_scourgebane : public CreatureScript
}
}
void SetGUID(uint64 guid, int32 type/* = 0*/) override
void SetGUID(ObjectGuid guid, int32 type/* = 0*/) override
{
if (type == ACTION_VRYKUL_DEATH)
{
@@ -157,11 +157,11 @@ public:
struct npc_webwrapAI : public NullCreatureAI
{
npc_webwrapAI(Creature* creature) : NullCreatureAI(creature), victimGUID(0) { }
npc_webwrapAI(Creature* creature) : NullCreatureAI(creature) { }
uint64 victimGUID;
ObjectGuid victimGUID;
void SetGUID(uint64 guid, int32 /*param*/) override
void SetGUID(ObjectGuid guid, int32 /*param*/) override
{
victimGUID = guid;
if (me->m_spells[0] && victimGUID)
@@ -417,7 +417,7 @@ public:
}
}
uint64 GetGUID(int32 type) const override
ObjectGuid GetGUID(int32 type) const override
{
if (type >= DATA_FIRST_SURGE_TARGET_GUID && type < DATA_FIRST_SURGE_TARGET_GUID + NUM_MAX_SURGE_TARGETS)
return _surgeTargetGUID[type - DATA_FIRST_SURGE_TARGET_GUID];
@@ -427,7 +427,7 @@ public:
return 0;
}
void SetGUID(uint64 guid, int32 type) override
void SetGUID(ObjectGuid guid, int32 type) override
{
switch (type)
{
@@ -157,7 +157,7 @@ public:
}
}
void SetGUID(uint64 guid, int32 id/* = 0 */) override
void SetGUID(ObjectGuid guid, int32 id/* = 0 */) override
{
if (id == DATA_INTENSE_COLD)
intenseColdList.push_back(guid);
@@ -108,7 +108,6 @@ public:
{
instance = creature->GetInstanceScript();
m_uiStance = STANCE_DEFENSIVE;
memset(&m_auiStormforgedLieutenantGUID, 0, sizeof(m_auiStormforgedLieutenantGUID));
canBuff = true;
}
@@ -135,7 +134,7 @@ public:
uint32 m_uiMortalStrike_Timer;
uint32 m_uiSlam_Timer;
uint64 m_auiStormforgedLieutenantGUID[2];
ObjectGuid m_auiStormforgedLieutenantGUID[2];
void Reset() override
{
@@ -164,6 +163,7 @@ public:
for (uint8 i = 0; i < 2; ++i)
{
// Something isn't right here - m_auiStormforgedLieutenantGUID is never assinged to
if (Creature* pStormforgedLieutenant = ObjectAccessor::GetCreature(*me, m_auiStormforgedLieutenantGUID[i]))
if (!pStormforgedLieutenant->IsAlive())
pStormforgedLieutenant->Respawn();
@@ -2225,7 +2225,7 @@ public:
uiEventPhase = 1;
}
void SetGUID(uint64 uiGuid, int32 /*iId*/) override
void SetGUID(ObjectGuid uiGuid, int32 /*iId*/) override
{
uiPlayerGUID = uiGuid;
}
@@ -97,17 +97,17 @@ public:
Link_Timer = 1000;
}
void SetGUID(uint64 guid, int32 id/* = 0 */) override
void SetGUID(ObjectGuid guid, int32 id/* = 0 */) override
{
if (id == INNER_DEMON_VICTIM)
victimGUID = guid;
}
uint64 GetGUID(int32 id/* = 0 */) const override
ObjectGuid GetGUID(int32 id/* = 0 */) const override
{
if (id == INNER_DEMON_VICTIM)
return victimGUID;
return 0;
return ObjectGuid::Empty;
}
void JustDied(Unit* /*killer*/) override
@@ -94,7 +94,7 @@ class boss_doomwalker : public CreatureScript
{
if (who && who->GetTypeId() == TYPEID_PLAYER && me->IsValidAttackTarget(who))
if (who->HasAura(SPELL_MARK_DEATH, 0))
if (who->HasAura(SPELL_MARK_DEATH))
who->CastSpell(who, SPELL_AURA_DEATH, 1);
}
@@ -617,7 +617,7 @@ class npc_simon_bunny : public CreatureScript
uint8 gameLevel;
uint8 fails;
uint8 gameTicks;
uint64 playerGUID;
ObjectGuid playerGUID;
uint32 clusterIds[SIMON_MAX_COLORS];
float zCoordCorrection;
float searchDistance;
@@ -727,7 +727,7 @@ class npc_simon_bunny : public CreatureScript
}
// Used for getting involved player guid. Parameter id is used for defining if is a large(Monument) or small(Relic) node
void SetGUID(uint64 guid, int32 id) override
void SetGUID(ObjectGuid guid, int32 id) override
{
me->SetCanFly(true);