mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 00:48:39 +01:00
Core: Fixed some compile warnings
This commit is contained in:
@@ -302,7 +302,7 @@ class npc_alpha_beam : public CreatureScript
|
||||
{
|
||||
npc_alpha_beamAI(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()) { }
|
||||
|
||||
void IsSummonedBy(Unit* summoner)
|
||||
void IsSummonedBy(Unit* /*summoner*/)
|
||||
{
|
||||
if (Creature* anraphet = ObjectAccessor::GetCreature(*me, _instance->GetData64(DATA_ANRAPHET_GUID)))
|
||||
anraphet->CastSpell(me, SPELL_ALPHA_BEAMS_BACK_CAST);
|
||||
|
||||
@@ -76,7 +76,7 @@ class SummonScarab : public BasicEvent
|
||||
public:
|
||||
SummonScarab(Unit* owner, InstanceScript* instance) : _owner(owner), _instance(instance) { }
|
||||
|
||||
bool Execute(uint64 execTime, uint32 /*diff*/)
|
||||
bool Execute(uint64 /*execTime*/, uint32 /*diff*/)
|
||||
{
|
||||
if (!_instance || _instance->GetBossState(DATA_EARTHRAGER_PTAH) != IN_PROGRESS)
|
||||
return true; // delete event
|
||||
@@ -178,7 +178,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void SetData(uint32 index, uint32 value)
|
||||
void SetData(uint32 index, uint32 /*value*/)
|
||||
{
|
||||
if (index == DATA_SUMMON_DEATHS)
|
||||
{
|
||||
@@ -311,7 +311,7 @@ public:
|
||||
{
|
||||
if (Unit* ptah = GetCaster())
|
||||
{
|
||||
ptah->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_UNK_29 | UNIT_FLAG_UNK_31);
|
||||
ptah->SetFlag(UNIT_FIELD_FLAGS, uint32(UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_UNK_29 | UNIT_FLAG_UNK_31));
|
||||
ptah->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);
|
||||
}
|
||||
}
|
||||
@@ -320,7 +320,7 @@ public:
|
||||
{
|
||||
if (Unit* ptah = GetCaster())
|
||||
{
|
||||
ptah->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_UNK_29 | UNIT_FLAG_UNK_31);
|
||||
ptah->RemoveFlag(UNIT_FIELD_FLAGS, uint32(UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_UNK_29 | UNIT_FLAG_UNK_31));
|
||||
ptah->RemoveFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ public:
|
||||
DoCast(me, SPELL_TELEPORT);
|
||||
|
||||
DoCast(me, SPELL_SHIELD_OF_LIGHT);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_31);
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, uint32(UNIT_FLAG_UNK_31));
|
||||
|
||||
DoCastAOE(SPELL_ACTIVATE_BEACONS);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user