aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoridostyle@zoit <idostyl3@googlemail.com>2011-09-05 16:40:54 +0200
committeridostyle@zoit <idostyl3@googlemail.com>2011-10-05 14:41:10 +0200
commitae63e8b4f6b175815da4ae2c18f2854b74c3087f (patch)
tree655d001321947619ce0a2c79cdf77c84cdb92110 /src
parentce54465d19499d87768fae2e9d79f9a088ba18e7 (diff)
Core/Spell: Shattered Barrier should obey proc chance of talent ranks
Diffstat (limited to 'src')
-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: