*Mangos [7027] Add descriptions to new options. By VladimirMangos.
*Mangos [7028] Code fix on client change. Remove not need code. Fix some SPELL_AURA_OVERRIDE_CLASS_SCRIPTS aura use. By DiSlord. --HG-- branch : trunk
This commit is contained in:
+5
-20
@@ -1798,7 +1798,7 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
|
|||||||
{
|
{
|
||||||
if(Unit* caster = (*i)->GetCaster())
|
if(Unit* caster = (*i)->GetCaster())
|
||||||
{
|
{
|
||||||
AuraList const& vOverRideCS = caster->GetAurasByType(SPELL_AURA_OVERRIDE_CLASS_SCRIPTS);
|
AuraList const& vOverRideCS = caster->GetAurasByType(SPELL_AURA_DUMMY);
|
||||||
for(AuraList::const_iterator k = vOverRideCS.begin(); k != vOverRideCS.end(); ++k)
|
for(AuraList::const_iterator k = vOverRideCS.begin(); k != vOverRideCS.end(); ++k)
|
||||||
{
|
{
|
||||||
switch((*k)->GetModifier()->m_miscvalue)
|
switch((*k)->GetModifier()->m_miscvalue)
|
||||||
@@ -1806,8 +1806,6 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
|
|||||||
case 5065: // Rank 1
|
case 5065: // Rank 1
|
||||||
case 5064: // Rank 2
|
case 5064: // Rank 2
|
||||||
case 5063: // Rank 3
|
case 5063: // Rank 3
|
||||||
case 5062: // Rank 4
|
|
||||||
case 5061: // Rank 5
|
|
||||||
{
|
{
|
||||||
if(RemainingDamage >= (*i)->GetModifier()->m_amount)
|
if(RemainingDamage >= (*i)->GetModifier()->m_amount)
|
||||||
reflectDamage = (*i)->GetModifier()->m_amount * (*k)->GetModifier()->m_amount/100;
|
reflectDamage = (*i)->GetModifier()->m_amount * (*k)->GetModifier()->m_amount/100;
|
||||||
@@ -7139,7 +7137,7 @@ uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint3
|
|||||||
{
|
{
|
||||||
//Molten Fury
|
//Molten Fury
|
||||||
case 4920: case 4919:
|
case 4920: case 4919:
|
||||||
if(pVictim->HasAuraState(AURA_STATE_HEALTHLESS_20_PERCENT))
|
if(pVictim->HasAuraState(AURA_STATE_HEALTHLESS_35_PERCENT))
|
||||||
TakenTotalMod *= (100.0f+(*i)->GetModifier()->m_amount)/100.0f; break;
|
TakenTotalMod *= (100.0f+(*i)->GetModifier()->m_amount)/100.0f; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7550,11 +7548,9 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM
|
|||||||
{
|
{
|
||||||
switch((*i)->GetModifier()->m_miscvalue)
|
switch((*i)->GetModifier()->m_miscvalue)
|
||||||
{
|
{
|
||||||
case 849: crit_chance+= 10.0f; break; //Shatter Rank 1
|
case 849: crit_chance+= 17.0f; break; //Shatter Rank 1
|
||||||
case 910: crit_chance+= 20.0f; break; //Shatter Rank 2
|
case 910: crit_chance+= 34.0f; break; //Shatter Rank 2
|
||||||
case 911: crit_chance+= 30.0f; break; //Shatter Rank 3
|
case 911: crit_chance+= 50.0f; break; //Shatter Rank 3
|
||||||
case 912: crit_chance+= 40.0f; break; //Shatter Rank 4
|
|
||||||
case 913: crit_chance+= 50.0f; break; //Shatter Rank 5
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10146,17 +10142,6 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
|
|||||||
if (triggeredByAura->m_procCharges == 0)
|
if (triggeredByAura->m_procCharges == 0)
|
||||||
removedSpells.push_back(triggeredByAura->GetId());
|
removedSpells.push_back(triggeredByAura->GetId());
|
||||||
break;
|
break;
|
||||||
case SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS:
|
|
||||||
case SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS:
|
|
||||||
// Hunter's Mark (1-4 Rangs)
|
|
||||||
if (spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && (spellInfo->SpellFamilyFlags&0x0000000000000400LL))
|
|
||||||
{
|
|
||||||
uint32 basevalue = triggeredByAura->GetBasePoints();
|
|
||||||
auraModifier->m_amount += basevalue/10;
|
|
||||||
if (auraModifier->m_amount > basevalue*4)
|
|
||||||
auraModifier->m_amount = basevalue*4;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case SPELL_AURA_MOD_CASTING_SPEED:
|
case SPELL_AURA_MOD_CASTING_SPEED:
|
||||||
// Skip melee hits or instant cast spells
|
// Skip melee hits or instant cast spells
|
||||||
if (procSpell == NULL || GetSpellCastTime(procSpell) == 0)
|
if (procSpell == NULL || GetSpellCastTime(procSpell) == 0)
|
||||||
|
|||||||
@@ -1154,6 +1154,13 @@ Death.CorpseReclaimDelay.PvE = 1
|
|||||||
# in days
|
# in days
|
||||||
# Default: 7 (weekly)
|
# Default: 7 (weekly)
|
||||||
#
|
#
|
||||||
|
# ArenaSeason.ID: current area season id show in client
|
||||||
|
# Default: 1
|
||||||
|
#
|
||||||
|
# ArenaSeason.InProgress: current area season state
|
||||||
|
# Default: 1 (active)
|
||||||
|
# 0 (finished)
|
||||||
|
#
|
||||||
###################################################################################################################
|
###################################################################################################################
|
||||||
|
|
||||||
Arena.MaxRatingDifference = 0
|
Arena.MaxRatingDifference = 0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7026"
|
#define REVISION_NR "7028"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|||||||
Reference in New Issue
Block a user