Core/Logs: Added Difficulty output to InstanceMap::SetResetSchedule error message. Requested by Aokromes

This commit is contained in:
Lopin
2011-08-19 10:47:56 +02:00
parent f960fcce65
commit dad2fc78e2
2 changed files with 2 additions and 3 deletions

View File

@@ -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()));
}
}

View File

@@ -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