*Fix build.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-03 11:41:58 -05:00
parent 193b0634df
commit ea034a8603
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -45,6 +45,7 @@
#include "SocialMgr.h" #include "SocialMgr.h"
#include "CellImpl.h" #include "CellImpl.h"
#include "Vehicle.h" #include "Vehicle.h"
#include "CreatureAI.h"
void WorldSession::HandleRepopRequestOpcode( WorldPacket & /*recv_data*/ ) void WorldSession::HandleRepopRequestOpcode( WorldPacket & /*recv_data*/ )
{ {
+3 -3
View File
@@ -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()); 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)) if(IsPositiveEffect(m_spellInfo->Id, i))
SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ALLY); SearchAreaTarget(unitList, radius, pushType, SPELL_TARGETS_ALLY);
else else
SearchAreaTarget(unitList, radius, targetType, SPELL_TARGETS_ENEMY); SearchAreaTarget(unitList, radius, pushType, SPELL_TARGETS_ENEMY);
} }
// let it be done in one check? // let it be done in one check?
else else
@@ -2070,7 +2070,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
for(SpellScriptTarget::const_iterator i_spellST = lower; i_spellST != upper; ++i_spellST) for(SpellScriptTarget::const_iterator i_spellST = lower; i_spellST != upper; ++i_spellST)
{ {
if(i_spellST->second.type == SPELL_TARGET_TYPE_CREATURE) 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);
} }
} }
} }