diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-07-27 12:35:59 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-07-27 12:35:59 +0200 |
commit | b9a6e2333c86d575a1470c9c65f7612ffd73d478 (patch) | |
tree | a42f087bc18c68e1c6ba4c47035bb693effefa13 /src/server/game/Spells/SpellEffects.cpp | |
parent | b2a84d9f1edb5bf7df83e05f83ccccbdfca3b7b2 (diff) |
Core/Spells: Removed implicit casts from SpellImplicitTargetInfo, fixed copypaste mistakes and one crash
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rwxr-xr-x | src/server/game/Spells/SpellEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 491e6db5394..7564699c256 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1865,7 +1865,7 @@ void Spell::EffectJumpDest(SpellEffIndex effIndex) { m_targets.GetDst()->GetPosition(x, y, z); - if (m_spellInfo->Effects[effIndex].TargetA == TARGET_DEST_TARGET_BACK) + if (m_spellInfo->Effects[effIndex].TargetA.GetTarget() == TARGET_DEST_TARGET_BACK) { // explicit cast data from client or server-side cast // some spell at client send caster @@ -6872,7 +6872,7 @@ void Spell::GetSummonPosition(uint32 i, Position &pos, float radius, uint32 coun else { //This is a workaround. Do not have time to write much about it - switch (m_spellInfo->Effects[i].TargetA) + switch (m_spellInfo->Effects[i].TargetA.GetTarget()) { case TARGET_MINION: case TARGET_DEST_CASTER_RANDOM: @@ -7044,7 +7044,7 @@ void Spell::EffectBind(SpellEffIndex effIndex) uint32 area_id; WorldLocation loc; - if (m_spellInfo->Effects[effIndex].TargetA == TARGET_DST_DB || m_spellInfo->Effects[effIndex].TargetB == TARGET_DST_DB) + if (m_spellInfo->Effects[effIndex].TargetA.GetTarget() == TARGET_DST_DB || m_spellInfo->Effects[effIndex].TargetB.GetTarget() == TARGET_DST_DB) { SpellTargetPosition const* st = sSpellMgr->GetSpellTargetPosition(m_spellInfo->Id); if (!st) |