Glyph of Blocking proc moved to DB.

--HG--
branch : trunk
This commit is contained in:
Astellar
2010-01-05 15:52:44 +03:00
parent 53a7a7bd48
commit a886552c85
4 changed files with 21 additions and 26 deletions
-8
View File
@@ -431,7 +431,6 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
}
break;
}
case SPELLFAMILY_WARRIOR:
{
// Bloodthirst
@@ -439,14 +438,7 @@ void Spell::SpellDamageSchoolDmg(uint32 effect_idx)
damage = uint32(damage * (m_caster->GetTotalAttackPowerValue(BASE_ATTACK)) / 100);
// Shield Slam
else if(m_spellInfo->SpellFamilyFlags[1] & 0x200 && m_spellInfo->Category == 1209)
{
damage += int32(m_caster->GetShieldBlockValue());
// Glyph of Shield Slam
if (m_caster->HasAura(58375))
m_caster->CastSpell(m_caster, 58374, true);
}
// Victory Rush
else if(m_spellInfo->SpellFamilyFlags[1] & 0x100)
{
+18 -18
View File
@@ -5059,12 +5059,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
triggered_spell_id = 26654;
break;
}
// Glyph of Blocking
case 58375:
{
triggered_spell_id = 58374;
break;
}
// Unstable Power
case 24658:
{
@@ -5665,18 +5659,24 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
basepoints0 = GetShieldBlockValue() * triggerAmount / 100;
break;
}
// Glyph of Sunder Armor
if (dummySpell->Id == 58387)
{
if (!pVictim || !pVictim->isAlive() || !procSpell)
return false;
target = SelectNearbyTarget();
if (!target || target == pVictim)
return false;
CastSpell(target, 58567, true);
return true;
// Glyph of Blocking
if (dummySpell->Id == 58375)
{
triggered_spell_id = 58374;
break;
}
// Glyph of Sunder Armor
if (dummySpell->Id == 58387)
{
if (!pVictim || !pVictim->isAlive() || !procSpell)
return false;
target = SelectNearbyTarget();
if (!target || target == pVictim)
return false;
CastSpell(target, 58567, true);
return true;
}
break;
}