mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Use MiscB as stat for SPELL_AURA_MOD_SPELL_DAMAGE_OF_STAT_PERCENT
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
b64a8bd3fe
commit
061e73492e
1 changed files with 2 additions and 8 deletions
|
|
@ -7633,14 +7633,8 @@ int32 Unit::SpellBaseDamageBonus(SpellSchoolMask schoolMask)
|
|||
{
|
||||
if((*i)->GetModifier()->m_miscvalue & schoolMask)
|
||||
{
|
||||
SpellEntry const* iSpellProto = (*i)->GetSpellProto();
|
||||
uint8 eff = (*i)->GetEffIndex();
|
||||
|
||||
// stat used dependent from next effect aura SPELL_AURA_MOD_SPELL_HEALING presence and misc value (stat index)
|
||||
Stats usedStat = STAT_INTELLECT;
|
||||
if(eff < 2 && iSpellProto->EffectApplyAuraName[eff+1]==SPELL_AURA_MOD_SPELL_HEALING_OF_STAT_PERCENT)
|
||||
usedStat = Stats(iSpellProto->EffectMiscValue[eff+1]);
|
||||
|
||||
// stat used stored in miscValueB for this aura
|
||||
Stats usedStat = Stats((*i)->GetMiscBValue());
|
||||
DoneAdvertisedBenefit += int32(GetStat(usedStat) * (*i)->GetModifier()->m_amount / 100.0f);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue