aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells
diff options
context:
space:
mode:
authorclick <none@none>2010-08-22 01:57:04 +0200
committerclick <none@none>2010-08-22 01:57:04 +0200
commit670964803f030c6d2b85d4281605ab221f5a5740 (patch)
tree5babaf3c1c2f7833bf2be8b10a1f7bec78722751 /src/server/game/Spells
parenta40cb46e610aefde8b270b34e9b510e76470a6b6 (diff)
Core: Fix more warnings, add new function sLog.outStaticDebug() that replaces DEBUG_LOG
--HG-- branch : trunk
Diffstat (limited to 'src/server/game/Spells')
-rw-r--r--src/server/game/Spells/Spell.cpp2
-rw-r--r--src/server/game/Spells/SpellEffects.cpp14
2 files changed, 8 insertions, 8 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index 512d1c90f98..87ca6c9bf76 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -4670,7 +4670,7 @@ void Spell::HandleThreatSpells(uint32 spellId)
m_targets.getUnitTarget()->AddThreat(m_caster, float(threat));
- DEBUG_LOG("Spell %u, rank %u, added an additional %i threat", spellId, sSpellMgr.GetSpellRank(spellId), threat);
+ sLog.outStaticDebug("Spell %u, rank %u, added an additional %i threat", spellId, sSpellMgr.GetSpellRank(spellId), threat);
}
void Spell::HandleEffects(Unit *pUnitTarget,Item *pItemTarget,GameObject *pGOTarget,uint32 i)
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index dc870431bf1..f7768608090 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -2081,7 +2081,7 @@ void Spell::EffectTriggerMissileSpell(uint32 effect_idx)
}
if (m_CastItem)
- DEBUG_LOG("WORLD: cast Item spellId - %i", spellInfo->Id);
+ sLog.outStaticDebug("WORLD: cast Item spellId - %i", spellInfo->Id);
// Remove spell cooldown (not category) if spell triggering spell with cooldown and same category
// Needed by freezing arrow and few other spells
@@ -6736,7 +6736,7 @@ void Spell::EffectTransmitted(uint32 effIndex)
//pGameObj->SetUInt32Value(GAMEOBJECT_LEVEL, m_caster->getLevel());
pGameObj->SetSpellId(m_spellInfo->Id);
- DEBUG_LOG("AddObject at SpellEfects.cpp EffectTransmitted");
+ sLog.outStaticDebug("AddObject at SpellEfects.cpp EffectTransmitted");
//m_caster->AddGameObject(pGameObj);
//m_ObjToDel.push_back(pGameObj);
@@ -7385,11 +7385,11 @@ void Spell::EffectBind(uint32 i)
data << uint32(area_id);
player->SendDirectMessage( &data );
- DEBUG_LOG("New homebind X : %f", loc.m_positionX);
- DEBUG_LOG("New homebind Y : %f", loc.m_positionY);
- DEBUG_LOG("New homebind Z : %f", loc.m_positionZ);
- DEBUG_LOG("New homebind MapId : %u", loc.m_mapId);
- DEBUG_LOG("New homebind AreaId : %u", area_id);
+ sLog.outStaticDebug("New homebind X : %f", loc.m_positionX);
+ sLog.outStaticDebug("New homebind Y : %f", loc.m_positionY);
+ sLog.outStaticDebug("New homebind Z : %f", loc.m_positionZ);
+ sLog.outStaticDebug("New homebind MapId : %u", loc.m_mapId);
+ sLog.outStaticDebug("New homebind AreaId : %u", area_id);
// zone update
data.Initialize(SMSG_PLAYERBOUND, 8+4);