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
@@ -166,7 +166,7 @@ public:
|
||||
|
||||
if (uiChainHealTimer <= diff)
|
||||
{
|
||||
if (uint64 TargetGUID = GetChainHealTargetGUID())
|
||||
if (ObjectGuid TargetGUID = GetChainHealTargetGUID())
|
||||
{
|
||||
if (Creature* target = ObjectAccessor::GetCreature(*me, TargetGUID))
|
||||
DoCast(target, SPELL_CHAIN_HEAL);
|
||||
@@ -224,7 +224,7 @@ public:
|
||||
Talk(SAY_SLAY);
|
||||
}
|
||||
|
||||
uint64 GetChainHealTargetGUID()
|
||||
ObjectGuid GetChainHealTargetGUID()
|
||||
{
|
||||
if (HealthBelowPct(85))
|
||||
return me->GetGUID();
|
||||
@@ -237,7 +237,7 @@ public:
|
||||
if (pGuard2 && pGuard2->IsAlive() && !pGuard2->HealthAbovePct(75))
|
||||
return pGuard2->GetGUID();
|
||||
|
||||
return 0;
|
||||
return ObjectGuid::Empty;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ public:
|
||||
{
|
||||
if (!bIsExploded)
|
||||
{
|
||||
if (!me->HasAura(SPELL_PROTECTIVE_BUBBLE, 0))
|
||||
if (!me->HasAura(SPELL_PROTECTIVE_BUBBLE))
|
||||
{
|
||||
Talk(SAY_SHATTER);
|
||||
DoCast(me, SPELL_WATER_BLAST);
|
||||
@@ -241,7 +241,7 @@ public:
|
||||
bool bIsWaterElementsAlive = false;
|
||||
if (!m_waterElements.empty())
|
||||
{
|
||||
for (std::list<uint64>::const_iterator itr = m_waterElements.begin(); itr != m_waterElements.end(); ++itr)
|
||||
for (SummonList::const_iterator itr = m_waterElements.begin(); itr != m_waterElements.end(); ++itr)
|
||||
if (Creature* temp = ObjectAccessor::GetCreature(*me, *itr))
|
||||
if (temp->IsAlive())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user