aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-08 18:22:10 -0600
committermegamage <none@none>2008-12-08 18:22:10 -0600
commit91ab0288c74301f7aef2f45923f266bad50b531d (patch)
tree158c2f132ca8af9716f57bc0b988ab8d98a632d3 /src/game/SpellMgr.cpp
parent8e4928a21a51a94b1d71874902f5503ff524dc45 (diff)
*Allow zero entry for script target (players).
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 8d17d94ec8e..4091efd2003 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1685,12 +1685,13 @@ void SpellMgr::LoadSpellScriptTarget()
}
default:
{
- if( targetEntry==0 )
+ //players
+ /*if( targetEntry==0 )
{
sLog.outErrorDb("Table `spell_script_target`: target entry == 0 for not GO target type (%u).",type);
continue;
- }
- if(!sCreatureStorage.LookupEntry<CreatureInfo>(targetEntry))
+ }*/
+ if(targetEntry && !sCreatureStorage.LookupEntry<CreatureInfo>(targetEntry))
{
sLog.outErrorDb("Table `spell_script_target`: creature template entry %u does not exist.",targetEntry);
continue;