mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[9394] Add expected spell ids to error output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
1697b12406
commit
500b91c049
3 changed files with 5 additions and 5 deletions
|
|
@ -322,7 +322,7 @@ void PoolGroup<Creature>::Spawn1Object(PoolObject* obj, bool instantly)
|
||||||
if(!instantly)
|
if(!instantly)
|
||||||
{
|
{
|
||||||
pCreature->SetRespawnTime( pCreature->GetRespawnDelay() );
|
pCreature->SetRespawnTime( pCreature->GetRespawnDelay() );
|
||||||
if (sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY) || pCreature->isWorldBoss())
|
if (sWorld.getConfig(CONFIG_BOOL_SAVE_RESPAWN_TIME_IMMEDIATLY) || pCreature->isWorldBoss())
|
||||||
pCreature->SaveRespawnTime();
|
pCreature->SaveRespawnTime();
|
||||||
}
|
}
|
||||||
map->Add(pCreature);
|
map->Add(pCreature);
|
||||||
|
|
@ -365,7 +365,7 @@ void PoolGroup<GameObject>::Spawn1Object(PoolObject* obj, bool instantly)
|
||||||
if(!instantly)
|
if(!instantly)
|
||||||
{
|
{
|
||||||
pGameobject->SetRespawnTime( pGameobject->GetRespawnDelay() );
|
pGameobject->SetRespawnTime( pGameobject->GetRespawnDelay() );
|
||||||
if (sWorld.getConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATLY))
|
if (sWorld.getConfig(CONFIG_BOOL_SAVE_RESPAWN_TIME_IMMEDIATLY))
|
||||||
pGameobject->SaveRespawnTime();
|
pGameobject->SaveRespawnTime();
|
||||||
}
|
}
|
||||||
map->Add(pGameobject);
|
map->Add(pGameobject);
|
||||||
|
|
|
||||||
|
|
@ -2525,9 +2525,9 @@ void Spell::cast(bool skipCheck)
|
||||||
if (!m_caster->CheckAndIncreaseCastCounter())
|
if (!m_caster->CheckAndIncreaseCastCounter())
|
||||||
{
|
{
|
||||||
if (m_triggeredByAuraSpell)
|
if (m_triggeredByAuraSpell)
|
||||||
sLog.outError("Spell %u triggered by aura spell %u too deep in cast chain for cast. Cast not allowed for prevent overflow stack crash.");
|
sLog.outError("Spell %u triggered by aura spell %u too deep in cast chain for cast. Cast not allowed for prevent overflow stack crash.", m_spellInfo->Id, m_triggeredByAuraSpell->Id);
|
||||||
else
|
else
|
||||||
sLog.outError("Spell %u too deep in cast chain for cast. Cast not allowed for prevent overflow stack crash.");
|
sLog.outError("Spell %u too deep in cast chain for cast. Cast not allowed for prevent overflow stack crash.", m_spellInfo->Id);
|
||||||
|
|
||||||
SendCastResult(SPELL_FAILED_ERROR);
|
SendCastResult(SPELL_FAILED_ERROR);
|
||||||
finish(false);
|
finish(false);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9393"
|
#define REVISION_NR "9394"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue