Warning fixes + compile fix after the merge
This commit is contained in:
@@ -814,6 +814,8 @@ void Object::GetUpdateFieldData(Player const* target, uint32*& flags, bool& isOw
|
|||||||
flags = CorpseUpdateFieldFlags;
|
flags = CorpseUpdateFieldFlags;
|
||||||
isOwner = ToCorpse()->GetOwnerGUID() == target->GetGUID();
|
isOwner = ToCorpse()->GetOwnerGUID() == target->GetGUID();
|
||||||
break;
|
break;
|
||||||
|
case TYPEID_OBJECT:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2576,6 +2576,7 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA
|
|||||||
for (uint32 effectNumber = 0; effectNumber < MAX_SPELL_EFFECTS; ++effectNumber)
|
for (uint32 effectNumber = 0; effectNumber < MAX_SPELL_EFFECTS; ++effectNumber)
|
||||||
{
|
{
|
||||||
if (effectMask & (1 << effectNumber))
|
if (effectMask & (1 << effectNumber))
|
||||||
|
{
|
||||||
if (unit->IsImmunedToSpellEffect(m_spellInfo, effectNumber))
|
if (unit->IsImmunedToSpellEffect(m_spellInfo, effectNumber))
|
||||||
effectMask &= ~(1 << effectNumber);
|
effectMask &= ~(1 << effectNumber);
|
||||||
else if (m_spellInfo->Effects[effectNumber].IsAura() && !m_spellInfo->IsPositiveEffect(effectNumber))
|
else if (m_spellInfo->Effects[effectNumber].IsAura() && !m_spellInfo->IsPositiveEffect(effectNumber))
|
||||||
@@ -2591,6 +2592,8 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!effectMask)
|
if (!effectMask)
|
||||||
return returnVal;
|
return returnVal;
|
||||||
|
|
||||||
|
|||||||
@@ -247,10 +247,14 @@ bool SpellScript::TargetHook::CheckEffect(SpellInfo const* spellEntry, uint8 eff
|
|||||||
return !area;
|
return !area;
|
||||||
case TARGET_REFERENCE_TYPE_TARGET: // BOTH
|
case TARGET_REFERENCE_TYPE_TARGET: // BOTH
|
||||||
return true;
|
return true;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ EndScriptData */
|
|||||||
#include "ScriptedCreature.h"
|
#include "ScriptedCreature.h"
|
||||||
#include "zulaman.h"
|
#include "zulaman.h"
|
||||||
#include "GridNotifiers.h"
|
#include "GridNotifiers.h"
|
||||||
|
#include "CellImpl.h"
|
||||||
|
|
||||||
enum eEnums
|
enum eEnums
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ EndScriptData */
|
|||||||
#include "ScriptedCreature.h"
|
#include "ScriptedCreature.h"
|
||||||
#include "zulaman.h"
|
#include "zulaman.h"
|
||||||
#include "GridNotifiers.h"
|
#include "GridNotifiers.h"
|
||||||
|
#include "CellImpl.h"
|
||||||
|
|
||||||
//Trash Waves
|
//Trash Waves
|
||||||
float NalorakkWay[8][3] =
|
float NalorakkWay[8][3] =
|
||||||
|
|||||||
@@ -1336,6 +1336,7 @@ class npc_dark_nucleus : public CreatureScript
|
|||||||
{
|
{
|
||||||
_targetAuraCheck = 1000;
|
_targetAuraCheck = 1000;
|
||||||
if (Unit* victim = me->getVictim())
|
if (Unit* victim = me->getVictim())
|
||||||
|
{
|
||||||
if (me->GetDistance(victim) < 15.0f &&
|
if (me->GetDistance(victim) < 15.0f &&
|
||||||
!victim->HasAura(SPELL_SHADOW_RESONANCE_RESIST, me->GetGUID()))
|
!victim->HasAura(SPELL_SHADOW_RESONANCE_RESIST, me->GetGUID()))
|
||||||
{
|
{
|
||||||
@@ -1345,6 +1346,7 @@ class npc_dark_nucleus : public CreatureScript
|
|||||||
else
|
else
|
||||||
MoveInLineOfSight(me->getVictim());
|
MoveInLineOfSight(me->getVictim());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_targetAuraCheck -= diff;
|
_targetAuraCheck -= diff;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
#include "SpellScript.h"
|
#include "SpellScript.h"
|
||||||
#include "SpellAuraEffects.h"
|
#include "SpellAuraEffects.h"
|
||||||
#include "GridNotifiers.h"
|
#include "GridNotifiers.h"
|
||||||
|
#include "CellImpl.h"
|
||||||
|
|
||||||
// 45102 Romantic Picnic
|
// 45102 Romantic Picnic
|
||||||
enum SpellsPicnic
|
enum SpellsPicnic
|
||||||
|
|||||||
Reference in New Issue
Block a user