From dad2fc78e2bf9cdf2d5e2e3a0cba451168537fcb Mon Sep 17 00:00:00 2001 From: Lopin Date: Fri, 19 Aug 2011 10:47:56 +0200 Subject: Core/Logs: Added Difficulty output to InstanceMap::SetResetSchedule error message. Requested by Aokromes --- src/server/game/Maps/Map.cpp | 4 ++-- src/server/game/Spells/Spell.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index aaceb1d7645..001f22815b5 100755 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -2541,8 +2541,8 @@ void InstanceMap::SetResetSchedule(bool on) if (InstanceSave *save = sInstanceSaveMgr->GetInstanceSave(GetInstanceId())) sInstanceSaveMgr->ScheduleReset(on, save->GetResetTime(), InstanceSaveManager::InstResetEvent(0, GetId(), Difficulty(GetSpawnMode()), GetInstanceId())); else - sLog->outError("InstanceMap::SetResetSchedule: cannot turn schedule %s, there is no save information for instance (map [id: %u, name: %s], instance id: %u)", - on ? "on" : "off", GetId(), GetMapName(), GetInstanceId()); + sLog->outError("InstanceMap::SetResetSchedule: cannot turn schedule %s, there is no save information for instance (map [id: %u, name: %s], instance id: %u, difficulty: %u)", + on ? "on" : "off", GetId(), GetMapName(), GetInstanceId(), Difficulty(GetSpawnMode())); } } diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index e29e0ced1e6..da16669367b 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4749,7 +4749,6 @@ SpellCastResult Spell::CheckCast(bool strict) //! Client checks this already if (m_spellInfo->AttributesEx6 & SPELL_ATTR6_ONLY_CAST_WHILE_POSSESSED && !m_caster->GetCharmerOrOwnerGUID()) return SPELL_FAILED_DONT_REPORT; - Unit* target = m_targets.GetUnitTarget(); // In pure self-cast spells, the client won't send any unit target -- cgit v1.2.3