diff options
author | Xanadu <none@none> | 2010-07-30 01:51:33 +0200 |
---|---|---|
committer | Xanadu <none@none> | 2010-07-30 01:51:33 +0200 |
commit | eb852f5bbda3d99d262795dc16eb5e7d454ea806 (patch) | |
tree | 4822b353f115a67080d0059b9ee55129d6fdd4a0 /src/server/game/Conditions/ConditionMgr.cpp | |
parent | cad437d7f0728ee3cbc961eb6149b0ae9f82b869 (diff) |
* Added the option to specify target entry in conditions table for spells with AoE GO targets.
* A few examples where this is desirable are posted on the forum.
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 9164f55c6ce..814ba08f2fb 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -770,6 +770,10 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) spellProto->EffectImplicitTargetB[i] == TARGET_UNIT_NEARBY_ENTRY || spellProto->EffectImplicitTargetA[i] == TARGET_GAMEOBJECT_NEARBY_ENTRY || spellProto->EffectImplicitTargetB[i] == TARGET_GAMEOBJECT_NEARBY_ENTRY || + spellProto->EffectImplicitTargetA[i] == TARGET_GAMEOBJECT_AREA_SRC || + spellProto->EffectImplicitTargetB[i] == TARGET_GAMEOBJECT_AREA_SRC || + spellProto->EffectImplicitTargetA[i] == TARGET_GAMEOBJECT_AREA_DST || + spellProto->EffectImplicitTargetB[i] == TARGET_GAMEOBJECT_AREA_DST || spellProto->EffectImplicitTargetA[i] == TARGET_DST_NEARBY_ENTRY || spellProto->EffectImplicitTargetB[i] == TARGET_DST_NEARBY_ENTRY || spellProto->EffectImplicitTargetA[i] == TARGET_UNIT_CONE_ENTRY || @@ -781,8 +785,9 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) } if (!targetfound) { - sLog.outErrorDb("SourceEntry %u in `condition` table does not have any implicit target TARGET_UNIT_NEARBY_ENTRY(38) or TARGET_DST_NEARBY_ENTRY (46)\ - ,TARGET_UNIT_AREA_ENTRY_SRC(7), TARGET_UNIT_AREA_ENTRY_DST(8), TARGET_UNIT_CONE_ENTRY(60), TARGET_GAMEOBJECT_NEARBY_ENTRY(40)",cond->mSourceEntry); + sLog.outErrorDb("SourceEntry %u in `condition` table does not have any implicit target TARGET_UNIT_NEARBY_ENTRY(38) or TARGET_DST_NEARBY_ENTRY (46)" + ",TARGET_UNIT_AREA_ENTRY_SRC(7), TARGET_UNIT_AREA_ENTRY_DST(8), TARGET_UNIT_CONE_ENTRY(60), TARGET_GAMEOBJECT_NEARBY_ENTRY(40)" + "TARGET_GAMEOBJECT_AREA_SRC(51), TARGET_GAMEOBJECT_AREA_DST(52)", cond->mSourceEntry); return false; } break; |