*Allow zero entry for script target (players).
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -618,7 +618,7 @@ namespace Trinity
|
||||
}break;
|
||||
case SPELL_TARGETS_ENTRY:
|
||||
{
|
||||
if(itr->getSource()->GetTypeId()!=TYPEID_UNIT || itr->getSource()->GetEntry()!= i_entry)
|
||||
if(itr->getSource()->GetEntry()!= i_entry)
|
||||
continue;
|
||||
}break;
|
||||
default: continue;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user