mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
Merge commit 'origin/master' into 320
Conflicts: src/game/SpellAuras.cpp
This commit is contained in:
commit
f06741d7c4
3 changed files with 10 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ enum AuraType
|
||||||
SPELL_AURA_DEFLECT_SPELLS,
|
SPELL_AURA_DEFLECT_SPELLS,
|
||||||
SPELL_AURA_288,
|
SPELL_AURA_288,
|
||||||
SPELL_AURA_289,
|
SPELL_AURA_289,
|
||||||
SPELL_AURA_290,
|
SPELL_AURA_MOD_ALL_CRIT_CHANCE,
|
||||||
SPELL_AURA_291,
|
SPELL_AURA_291,
|
||||||
SPELL_AURA_292,
|
SPELL_AURA_292,
|
||||||
SPELL_AURA_293,
|
SPELL_AURA_293,
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
||||||
&Aura::HandleNoImmediateEffect, //287 SPELL_AURA_DEFLECT_SPELLS implemented in Unit::MagicSpellHitResult and Unit::MeleeSpellHitResult
|
&Aura::HandleNoImmediateEffect, //287 SPELL_AURA_DEFLECT_SPELLS implemented in Unit::MagicSpellHitResult and Unit::MeleeSpellHitResult
|
||||||
&Aura::HandleUnused, //288 increase parry/deflect, prevent attack
|
&Aura::HandleUnused, //288 increase parry/deflect, prevent attack
|
||||||
&Aura::HandleUnused, //289 unused
|
&Aura::HandleUnused, //289 unused
|
||||||
&Aura::HandleUnused, //290 3 spells
|
&Aura::HandleAuraModAllCritChance, //290 SPELL_AURA_MOD_ALL_CRIT_CHANCE
|
||||||
&Aura::HandleUnused, //291 1 spell (+pct experience bonus)
|
&Aura::HandleUnused, //291 1 spell (+pct experience bonus)
|
||||||
&Aura::HandleNULL, //292 call stabled pet
|
&Aura::HandleNULL, //292 call stabled pet
|
||||||
&Aura::HandleNULL, //293 3 spells
|
&Aura::HandleNULL, //293 3 spells
|
||||||
|
|
@ -7417,3 +7417,9 @@ void Aura::HandleModTargetArmorPct(bool apply, bool Real)
|
||||||
|
|
||||||
((Player*)m_target)->UpdateArmorPenetration();
|
((Player*)m_target)->UpdateArmorPenetration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Aura::HandleAuraModAllCritChance(bool apply, bool Real)
|
||||||
|
{
|
||||||
|
this->HandleAuraModCritPercent(apply, Real);
|
||||||
|
this->HandleModSpellCritChance(apply, Real);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -586,6 +586,8 @@ void Player::UpdateSpellCritChance(uint32 school)
|
||||||
crit += GetSpellCritFromIntellect();
|
crit += GetSpellCritFromIntellect();
|
||||||
// Increase crit from SPELL_AURA_MOD_SPELL_CRIT_CHANCE
|
// Increase crit from SPELL_AURA_MOD_SPELL_CRIT_CHANCE
|
||||||
crit += GetTotalAuraModifier(SPELL_AURA_MOD_SPELL_CRIT_CHANCE);
|
crit += GetTotalAuraModifier(SPELL_AURA_MOD_SPELL_CRIT_CHANCE);
|
||||||
|
// Increase crit from SPELL_AURA_MOD_ALL_CRIT_CHANCE
|
||||||
|
crit += GetTotalAuraModifier(SPELL_AURA_MOD_ALL_CRIT_CHANCE);
|
||||||
// Increase crit by school from SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL
|
// Increase crit by school from SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL
|
||||||
crit += GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, 1<<school);
|
crit += GetTotalAuraModifierByMiscMask(SPELL_AURA_MOD_SPELL_CRIT_CHANCE_SCHOOL, 1<<school);
|
||||||
// Increase crit from spell crit ratings
|
// Increase crit from spell crit ratings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue