mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +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)
|
if((*i)->GetModifier()->m_miscvalue & schoolMask)
|
||||||
{
|
{
|
||||||
SpellEntry const* iSpellProto = (*i)->GetSpellProto();
|
// stat used stored in miscValueB for this aura
|
||||||
uint8 eff = (*i)->GetEffIndex();
|
Stats usedStat = Stats((*i)->GetMiscBValue());
|
||||||
|
|
||||||
// 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]);
|
|
||||||
|
|
||||||
DoneAdvertisedBenefit += int32(GetStat(usedStat) * (*i)->GetModifier()->m_amount / 100.0f);
|
DoneAdvertisedBenefit += int32(GetStat(usedStat) * (*i)->GetModifier()->m_amount / 100.0f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue