Fixed spell Glacier Rot, by Metaphysical.Drama.
--HG-- branch : trunk
This commit is contained in:
+15
-1
@@ -9665,7 +9665,8 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
|
|||||||
// Glacier Rot
|
// Glacier Rot
|
||||||
if (spellProto->SpellFamilyFlags[0] & 0x2 || spellProto->SpellFamilyFlags[1] & 0x6)
|
if (spellProto->SpellFamilyFlags[0] & 0x2 || spellProto->SpellFamilyFlags[1] & 0x6)
|
||||||
if (AuraEffect * aurEff = GetDummyAura(SPELLFAMILY_DEATHKNIGHT, 196, 0))
|
if (AuraEffect * aurEff = GetDummyAura(SPELLFAMILY_DEATHKNIGHT, 196, 0))
|
||||||
DoneTotalMod *= (100.0f + aurEff->GetAmount()) / 100.0f;
|
if (pVictim->GetDiseasesByCaster(owner->GetGUID()) > 0)
|
||||||
|
DoneTotalMod *= (100.0f + aurEff->GetAmount()) / 100.0f;
|
||||||
|
|
||||||
// This is not a typo - Impurity has SPELLFAMILY_DRUID
|
// This is not a typo - Impurity has SPELLFAMILY_DRUID
|
||||||
if (AuraEffect * aurEff = GetDummyAura(SPELLFAMILY_DRUID, 1986, 0))
|
if (AuraEffect * aurEff = GetDummyAura(SPELLFAMILY_DRUID, 1986, 0))
|
||||||
@@ -10704,6 +10705,19 @@ void Unit::MeleeDamageBonus(Unit *pVictim, uint32 *pdamage, WeaponAttackType att
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Custom scripted damage
|
||||||
|
if (spellProto)
|
||||||
|
switch(spellProto->SpellFamilyName)
|
||||||
|
{
|
||||||
|
case SPELLFAMILY_DEATHKNIGHT:
|
||||||
|
// Glacier Rot
|
||||||
|
if (spellProto->SpellFamilyFlags[0] & 0x2 || spellProto->SpellFamilyFlags[1] & 0x6)
|
||||||
|
if (AuraEffect * aurEff = GetDummyAura(SPELLFAMILY_DEATHKNIGHT, 196, 0))
|
||||||
|
if (pVictim->GetDiseasesByCaster(owner->GetGUID()) > 0)
|
||||||
|
DoneTotalMod *= (100.0f + aurEff->GetAmount()) / 100.0f;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// ..taken
|
// ..taken
|
||||||
AuraEffectList const& mModDamagePercentTaken = pVictim->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN);
|
AuraEffectList const& mModDamagePercentTaken = pVictim->GetAurasByType(SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN);
|
||||||
for (AuraEffectList::const_iterator i = mModDamagePercentTaken.begin(); i != mModDamagePercentTaken.end(); ++i)
|
for (AuraEffectList::const_iterator i = mModDamagePercentTaken.begin(); i != mModDamagePercentTaken.end(); ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user