aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortobmaps <spambot42@yandex.ru>2011-06-20 03:39:07 +0700
committertobmaps <spambot42@yandex.ru>2011-06-20 03:39:07 +0700
commit24764a674ba5fde71c2eeed51610a0965feb9a03 (patch)
treec68de64b970caaed045f04fdda40cfbd7ec2a45d /src
parent32ee81939f45b1916733da420ed828d2369d11f9 (diff)
Core/Spells: Fix crash with spellstealing of Divine Illumination
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuras.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index dc5be00331e..f4f9a6680c4 100755
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -1551,13 +1551,14 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
else
target->RemoveAurasDueToSpell(64364, GetCasterGUID());
break;
- case 31842:
- if (caster->HasAura(70755))
+ case 31842: // Divine Illumination
+ // Item - Paladin T10 Holy 2P Bonus
+ if (target->HasAura(70755))
{
if (apply)
- caster->CastSpell(caster, 71166, true);
+ target->CastSpell(target, 71166, true);
else
- caster->RemoveAurasDueToSpell(71166);
+ target->RemoveAurasDueToSpell(71166);
}
break;
}