aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-12-29 02:06:53 -0300
committerariel- <ariel-@users.noreply.github.com>2016-12-29 02:06:53 -0300
commit29827855d06bb41dd2109fc36935fc84925eb094 (patch)
tree9f40b3a7796c8c9c004554efdc0086ea16c715ab
parent27fb5fc16d88c0002898981009bedc6b8001cac7 (diff)
Core/Spell: Fix Turn the Tables
Closes #5134
-rw-r--r--src/server/game/Spells/SpellMgr.cpp10
-rw-r--r--src/server/scripts/Spells/spell_rogue.cpp3
2 files changed, 11 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 02ff0382f98..92aebe4d6db 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2669,6 +2669,16 @@ void SpellMgr::LoadSpellInfoCorrections()
// Entries were not updated after spell effect change, we have to do that manually :/
spellInfo->AttributesEx3 |= SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED;
break;
+ case 51627: // Turn the Tables (Rank 1)
+ case 51628: // Turn the Tables (Rank 2)
+ case 51629: // Turn the Tables (Rank 3)
+ spellInfo->AttributesEx3 |= SPELL_ATTR3_STACK_FOR_DIFF_CASTERS;
+ break;
+ case 52910: // Turn the Tables
+ case 52914: // Turn the Tables
+ case 52915: // Turn the Tables
+ spellInfo->Effects[EFFECT_0].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_CASTER);
+ break;
case 29441: // Magic Absorption (Rank 1)
case 29444: // Magic Absorption (Rank 2)
// Caused off by 1 calculation (ie 79 resistance at level 80)
diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp
index f3d30af1f84..ad5dafff0c4 100644
--- a/src/server/scripts/Spells/spell_rogue.cpp
+++ b/src/server/scripts/Spells/spell_rogue.cpp
@@ -1102,8 +1102,7 @@ class spell_rog_turn_the_tables : public SpellScriptLoader
if (!caster)
return;
- Unit* target = GetTarget();
- target->CastSpell((Unit*)nullptr, GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, true, nullptr, aurEff, caster->GetGUID());
+ caster->CastSpell((Unit*)nullptr, GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, true, nullptr, aurEff);
}
void Register() override