*Add some detailed error log in SCRIPT_COMMAND_CAST_SPELL so we can know what is causing spams

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-13 14:39:01 -05:00
parent e2374e8bdb
commit e0449b421c
2 changed files with 3 additions and 2 deletions

View File

@@ -3307,7 +3307,7 @@ void Map::ScriptsProcess()
if(!cmdTarget)
{
sLog.outError("SCRIPT_COMMAND_CAST_SPELL call for NULL %s.",step.script->datalong2 & 0x01 ? "source" : "target");
sLog.outError("SCRIPT_COMMAND_CAST_SPELL %u call for NULL %s.", step.script->datalong, step.script->datalong2 & 0x01 ? "source" : "target");
break;
}
@@ -3323,7 +3323,7 @@ void Map::ScriptsProcess()
if(!cmdSource)
{
sLog.outError("SCRIPT_COMMAND_CAST_SPELL call for NULL %s.",step.script->datalong2 & 0x02 ? "target" : "source");
sLog.outError("SCRIPT_COMMAND_CAST_SPELL %u call for NULL %s.", step.script->datalong, step.script->datalong2 & 0x02 ? "target" : "source");
break;
}