diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-09-24 19:40:57 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-09-24 19:40:57 +0200 |
commit | da0229da8f6c22d71729bed54ab608b0b805112e (patch) | |
tree | 1af09c7385d0de22c50e18480e8b04bb17393bfb /src/server/game/Spells/Spell.cpp | |
parent | cd7060c65adfaafe22c67bce065e2358f158e932 (diff) |
Core/Scripts: Implemented 2 new target selectors, one specialized for spells, checking auras, range and attributes; and the other is a very simple non-tank selection what is sufficient for most cases
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rwxr-xr-x | src/server/game/Spells/Spell.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 8f8748cfdec..33d03999ad4 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -807,7 +807,7 @@ void Spell::SelectEffectTypeImplicitTargets(uint8 effIndex) switch (m_spellInfo->Effects[effIndex].GetImplicitTargetType()) { - // add explicit object target or self to the target map + // add explicit object target or self to the target map case EFFECT_IMPLICIT_TARGET_EXPLICIT: // player which not released his spirit is Unit, but target flag for it is TARGET_FLAG_CORPSE_MASK if (targetMask & (TARGET_FLAG_UNIT_MASK | TARGET_FLAG_CORPSE_MASK)) @@ -839,7 +839,7 @@ void Spell::SelectEffectTypeImplicitTargets(uint8 effIndex) AddGOTarget(gObjTarget, 1 << effIndex); } break; - // add self to the target map + // add self to the target map case EFFECT_IMPLICIT_TARGET_CASTER: if (targetMask & TARGET_FLAG_UNIT_MASK) AddUnitTarget(m_caster, 1 << effIndex, false); |