[svn] Continue the work of rewriting spell target selection functions (warning: this may cause some spells broken).

Add some spell_script_target.
Delete some workaround in scripts (since core provides spell support now).

--HG--
branch : trunk
This commit is contained in:
megamage
2008-10-25 10:37:28 -05:00
parent e22427d4b0
commit 43436c8f30
7 changed files with 542 additions and 767 deletions

View File

@@ -1793,7 +1793,7 @@ void SpellMgr::LoadSpellScriptTarget()
continue;
}
bool targetfound = false;
/*bool targetfound = false;
for(int i = 0; i <3; ++i)
{
if( spellProto->EffectImplicitTargetA[i]==TARGET_SCRIPT ||
@@ -1809,7 +1809,7 @@ void SpellMgr::LoadSpellScriptTarget()
{
sLog.outErrorDb("Table `spell_script_target`: spellId %u listed for TargetEntry %u does not have any implicit target TARGET_SCRIPT(38) or TARGET_SCRIPT_COORDINATES (46).",spellId,targetEntry);
continue;
}
}*/
if( type >= MAX_SPELL_TARGET_TYPE )
{