*Allow zero entry for script target (players).
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -618,7 +618,7 @@ namespace Trinity
|
|||||||
}break;
|
}break;
|
||||||
case SPELL_TARGETS_ENTRY:
|
case SPELL_TARGETS_ENTRY:
|
||||||
{
|
{
|
||||||
if(itr->getSource()->GetTypeId()!=TYPEID_UNIT || itr->getSource()->GetEntry()!= i_entry)
|
if(itr->getSource()->GetEntry()!= i_entry)
|
||||||
continue;
|
continue;
|
||||||
}break;
|
}break;
|
||||||
default: continue;
|
default: continue;
|
||||||
|
|||||||
@@ -1685,12 +1685,13 @@ void SpellMgr::LoadSpellScriptTarget()
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if( targetEntry==0 )
|
//players
|
||||||
|
/*if( targetEntry==0 )
|
||||||
{
|
{
|
||||||
sLog.outErrorDb("Table `spell_script_target`: target entry == 0 for not GO target type (%u).",type);
|
sLog.outErrorDb("Table `spell_script_target`: target entry == 0 for not GO target type (%u).",type);
|
||||||
continue;
|
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);
|
sLog.outErrorDb("Table `spell_script_target`: creature template entry %u does not exist.",targetEntry);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user