aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCron <vertozor@gmail.com>2011-09-25 15:53:31 -0300
committerCron <vertozor@gmail.com>2011-09-25 15:53:31 -0300
commit8622bedeacbef3eecd0b22a521cfd84fc50e6e55 (patch)
treeb0389a97c3f82b9f8b69930a538baee8432aa4e9
parent210a770958c19ea4a881b77c78ca96624aaddc12 (diff)
Core/Spells: Fixed glyph of Fire Blast.
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 26e3a79503d..25219f05429 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -11127,6 +11127,13 @@ bool Unit::isSpellCrit(Unit* victim, SpellInfo const* spellProto, SpellSchoolMas
// Custom crit by class
switch (spellProto->SpellFamilyName)
{
+ case SPELLFAMILY_MAGE:
+ // Glyph of Fire Blast
+ if ((spellProto->SpellFamilyFlags[0] & 0x2) == 0x2 && spellProto->SpellIconID == 12)
+ if (victim->HasAuraWithMechanic((1<<MECHANIC_STUN) | (1<<MECHANIC_KNOCKOUT))
+ if (AuraEffect const* aurEff = GetAuraEffect(56369, EFFECT_0))
+ crit_chance += aurEff->GetAmount();
+ break;
case SPELLFAMILY_DRUID:
// Improved Faerie Fire
if (victim->HasAuraState(AURA_STATE_FAERIE_FIRE))