diff options
| author | QAston <qaston@gmail.com> | 2011-07-02 16:12:19 +0200 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2011-07-02 16:12:19 +0200 |
| commit | 86dde83ddade00c66a5af552d65d4787c22b6361 (patch) | |
| tree | dcd82d7c95facf45f52201edf7072a8f64f5c053 /src/server/game/Spells/SpellMgr.cpp | |
| parent | ce75ced7415cff24372e7c8b5bdb0dc0f1ef976f (diff) | |
Core/Spells: Define many unknown SpellCastTargetFlags enum values, rename some target type enum values to follow standards, also correctly implement TARGET_UNIT_TARGET_PASSENGER.
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
| -rwxr-xr-x | src/server/game/Spells/SpellMgr.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 125f729d74b..3135054b08b 100755 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -127,8 +127,9 @@ SpellMgr::SpellMgr() case TARGET_UNIT_TARGET_ANY: case TARGET_UNIT_TARGET_ENEMY: case TARGET_UNIT_TARGET_PARTY: - case TARGET_UNIT_PARTY_TARGET: - case TARGET_UNIT_CLASS_TARGET: + case TARGET_UNIT_TARGET_PASSENGER: + case TARGET_UNIT_TARGET_ALLY_PARTY: + case TARGET_UNIT_TARGET_RAID_CLASS: case TARGET_UNIT_CHAINHEAL: SpellTargetType[i] = TARGET_TYPE_UNIT_TARGET; break; @@ -236,7 +237,7 @@ SpellMgr::SpellMgr() case TARGET_UNIT_AREA_ENTRY_SRC: case TARGET_UNIT_AREA_PARTY_DST: case TARGET_UNIT_AREA_PARTY_SRC: - case TARGET_UNIT_PARTY_TARGET: + case TARGET_UNIT_TARGET_ALLY_PARTY: case TARGET_UNIT_PARTY_CASTER: case TARGET_UNIT_CONE_ENEMY: case TARGET_UNIT_CONE_ALLY: @@ -4047,11 +4048,6 @@ void SpellMgr::LoadSpellCustomAttr() spellInfo->EffectBasePoints[2] += 30000; ++count; break; - // some dummy spell only has dest, should push caster in this case - case 62324: // Throw Passenger - spellInfo->Targets |= TARGET_FLAG_UNIT_CASTER; - ++count; - break; case 16834: // Natural shapeshifter case 16835: spellInfo->DurationIndex = 21; |
