aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2010-01-30 20:28:42 +0100
committerQAston <none@none>2010-01-30 20:28:42 +0100
commitba594111782dc6cdc6ef4a5bdf74eb00618ea69d (patch)
tree9a73a62216d855f587f32adafa4a7426c416672f /src
parentf726f89c8b15e3dcf5705b09dbe7a247770eeed8 (diff)
*Update spell_script_target table validation.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 716a7c3a886..74310036a0d 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -1945,13 +1945,19 @@ void SpellMgr::LoadSpellScriptTarget()
continue;
}
- /*bool targetfound = false;
+ bool targetfound = false;
for (uint8 i = 0; i < 3; ++i)
{
- if( spellProto->EffectImplicitTargetA[i]==TARGET_UNIT_NEARBY_ENTRY ||
+ if(spellProto->EffectImplicitTargetA[i]==TARGET_UNIT_AREA_ENTRY_SRC ||
+ spellProto->EffectImplicitTargetB[i]==TARGET_UNIT_AREA_ENTRY_SRC ||
+ spellProto->EffectImplicitTargetA[i]==TARGET_UNIT_AREA_ENTRY_DST ||
+ spellProto->EffectImplicitTargetB[i]==TARGET_UNIT_AREA_ENTRY_DST ||
+ spellProto->EffectImplicitTargetA[i]==TARGET_UNIT_NEARBY_ENTRY ||
spellProto->EffectImplicitTargetB[i]==TARGET_UNIT_NEARBY_ENTRY ||
spellProto->EffectImplicitTargetA[i]==TARGET_DST_NEARBY_ENTRY ||
- spellProto->EffectImplicitTargetB[i]==TARGET_DST_NEARBY_ENTRY )
+ spellProto->EffectImplicitTargetB[i]==TARGET_DST_NEARBY_ENTRY ||
+ spellProto->EffectImplicitTargetA[i]==TARGET_UNIT_CONE_ENTRY ||
+ spellProto->EffectImplicitTargetB[i]==TARGET_UNIT_CONE_ENTRY)
{
targetfound = true;
break;
@@ -1961,7 +1967,7 @@ void SpellMgr::LoadSpellScriptTarget()
{
sLog.outErrorDb("Table `spell_script_target`: spellId %u listed for TargetEntry %u does not have any implicit target TARGET_UNIT_NEARBY_ENTRY(38) or TARGET_DST_NEARBY_ENTRY (46).",spellId,targetEntry);
continue;
- }*/
+ }
if (type >= MAX_SPELL_TARGET_TYPE)
{