From eb852f5bbda3d99d262795dc16eb5e7d454ea806 Mon Sep 17 00:00:00 2001 From: Xanadu Date: Fri, 30 Jul 2010 01:51:33 +0200 Subject: * 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 --- src/server/game/Conditions/ConditionMgr.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/server/game/Conditions') 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; -- cgit v1.2.3