aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorxinef1 <w.szyszko2@gmail.com>2017-02-04 23:50:32 +0100
committerariel- <ariel-@users.noreply.github.com>2017-02-04 19:50:32 -0300
commit93746e8c4a79c8256cd4896533315683f143508c (patch)
treefc593ddd9a6bc026b6842f52446f1e9bc9a8dcb3 /src/server/game/Spells/SpellEffects.cpp
parent86da1a19bb36edf3242dafac6e45e87434ddff73 (diff)
Implemented binary resistances and some more (#18933)
- Fixed possible exploit with tamed pets having template immunities - Implemented binary resistances - Corrected resistances calculations - Pets properly inherit players spell penetration - Fixed doubled block calculation for damaging melee spells - Auras removing snare effects will only remove the snaring component - Shapeshifting will properly remove movement impairing auras only and not crowd control (dragon's breath) - Immunities are properly checked versus all schools appearing in spell, unit is immune only if immune to all schools - Spells with melee and magic school mask should compare armor reduction with resistances and select smaller reduction - Demonic Circle: Teleport no longer removes root effects
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 3c7390b54c6..d5ab9e75efb 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -766,7 +766,7 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
// Vanish (not exist)
case 18461:
{
- unitTarget->RemoveMovementImpairingAuras();
+ unitTarget->RemoveMovementImpairingAuras(true);
unitTarget->RemoveAurasByType(SPELL_AURA_MOD_STALKED);
// If this spell is given to an NPC, it must handle the rest using its own AI
@@ -787,7 +787,7 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
// Demonic Empowerment -- succubus
case 54437:
{
- unitTarget->RemoveMovementImpairingAuras();
+ unitTarget->RemoveMovementImpairingAuras(true);
unitTarget->RemoveAurasByType(SPELL_AURA_MOD_STALKED);
unitTarget->RemoveAurasByType(SPELL_AURA_MOD_STUN);
@@ -3624,7 +3624,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
case 30918: // Improved Sprint
{
// Removes snares and roots.
- unitTarget->RemoveMovementImpairingAuras();
+ unitTarget->RemoveMovementImpairingAuras(true);
break;
}
// Plant Warmaul Ogre Banner