Implement SCRIPT_COMMAND_KILL_CREDIT (8). by NoFantasy
--HG-- branch : trunk
This commit is contained in:
1 parent
1d79bc51ea
commit
1f9530af21
3 files changed
+41
No files matched your search
@@ -4386,6 +4386,16 @@ void ObjectMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename)
|
||||
break;
|
||||
}
|
||||
|
||||
case SCRIPT_COMMAND_KILL_CREDIT:
|
||||
{
|
||||
if (!GetCreatureTemplate(tmp.datalong))
|
||||
{
|
||||
sLog.outErrorDb("Table `%s` has invalid creature (Entry: %u) in SCRIPT_COMMAND_KILL_CREDIT for script id %u",tablename,tmp.datalong,tmp.id);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case SCRIPT_COMMAND_TEMP_SUMMON_CREATURE:
|
||||
{
|
||||
if(!Trinity::IsValidMapCoord(tmp.x,tmp.y,tmp.z,tmp.o))
|
||||
|
||||
Reference in new issue
Block a user