aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-19 18:53:27 +0100
committern0n4m3 <none@none>2009-12-19 18:53:27 +0100
commit1f9530af217c32fbb60f2d75ef388aa8888381b5 (patch)
treed683b091979a52d8cd4f4b143208278d119362d5 /src/game/ObjectMgr.cpp
parent1d79bc51ea857070c5f23782c84dca5892c9edb2 (diff)
Implement SCRIPT_COMMAND_KILL_CREDIT (8). by NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index aeb0fade34f..cc911b63b0c 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -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))