aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-03 11:41:58 -0500
committermegamage <none@none>2009-05-03 11:41:58 -0500
commitea034a860362a5549128c57ef80684ea3b95568c (patch)
tree58d6771447cd129179f7aba1847ff2748d2981c9 /src
parent193b0634dfa42fcce9904003f9c0d3f6b5ec54af (diff)
*Fix build.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/MiscHandler.cpp1
-rw-r--r--src/game/Spell.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp
index f7f533893fe..e41e3211344 100644
--- a/src/game/MiscHandler.cpp
+++ b/src/game/MiscHandler.cpp
@@ -45,6 +45,7 @@
#include "SocialMgr.h"
#include "CellImpl.h"
#include "Vehicle.h"
+#include "CreatureAI.h"
void WorldSession::HandleRepopRequestOpcode( WorldPacket & /*recv_data*/ )
{
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index ab48515053d..eca8051ce97 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -2060,9 +2060,9 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
sLog.outErrorDb("Spell (ID: %u) (caster Entry: %u) does not have record in `spell_script_target`", m_spellInfo->Id, m_caster->GetEntry());
if(IsPositiveEffect(m_spellInfo->Id, i))
- SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ALLY);
+ SearchAreaTarget(unitList, radius, pushType, SPELL_TARGETS_ALLY);
else
- SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ENEMY);
+ SearchAreaTarget(unitList, radius, pushType, SPELL_TARGETS_ENEMY);
}
// let it be done in one check?
else
@@ -2070,7 +2070,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
for(SpellScriptTarget::const_iterator i_spellST = lower; i_spellST != upper; ++i_spellST)
{
if(i_spellST->second.type == SPELL_TARGET_TYPE_CREATURE)
- SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ENTRY, i_spellST->second.targetEntry);
+ SearchAreaTarget(unitList, radius, pushType, SPELL_TARGETS_ENTRY, i_spellST->second.targetEntry);
}
}
}