aboutsummaryrefslogtreecommitdiff
path: root/src/server/game
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-10-06 14:22:38 +0200
committerShauren <shauren.trinity@gmail.com>2011-10-06 14:22:38 +0200
commit4c441af07b6c9380f1d8458eafce2f4728f1bfd0 (patch)
tree09f2b4b39e6af4afb097d08bc354173a7393a40d /src/server/game
parent8919b9cb4c08e6960f844a90472dfeb5b2caa5bf (diff)
parent2f5e10c1ba8ff21c63cfd769e348cdf9101d81d2 (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore
Diffstat (limited to 'src/server/game')
-rwxr-xr-xsrc/server/game/Spells/Auras/SpellAuras.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index e2690c02b1d..df6ac44f2cc 100755
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -1347,8 +1347,9 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
if (removeMode == AURA_REMOVE_BY_ENEMY_SPELL && GetSpellInfo()->SpellFamilyFlags[1] & 0x1)
{
// Shattered Barrier
- if (caster->GetDummyAuraEffect(SPELLFAMILY_MAGE, 2945, 0))
- caster->CastSpell(target, 55080, true, NULL, GetEffect(0));
+ if (AuraEffect * dummy = caster->GetDummyAuraEffect(SPELLFAMILY_MAGE, 2945, 0))
+ if (roll_chance_i(dummy->GetSpellInfo()->ProcChance))
+ caster->CastSpell(target, 55080, true, NULL, GetEffect(0));
}
break;
case SPELLFAMILY_WARRIOR: