mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[9742] Final cleanup in non proper now EffectBasePoints use.
This commit is contained in:
parent
958edb65f7
commit
ee0089826d
4 changed files with 10 additions and 9 deletions
|
|
@ -1985,8 +1985,9 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe
|
|||
spellProto->Id == 60218) // Essence of Gossamer
|
||||
{
|
||||
// Max absorb stored in 1 dummy effect
|
||||
if (spellProto->EffectBasePoints[EFFECT_INDEX_1] < currentAbsorb)
|
||||
currentAbsorb = spellProto->EffectBasePoints[EFFECT_INDEX_1];
|
||||
uint32 max_absorb = spellProto->CalculateSimpleValue(EFFECT_INDEX_1);
|
||||
if (max_absorb < currentAbsorb)
|
||||
currentAbsorb = max_absorb;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
@ -6540,7 +6541,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
{
|
||||
if (procSpell->Effect[i] == SPELL_EFFECT_ENERGIZE)
|
||||
{
|
||||
int32 mana = procSpell->EffectBasePoints[i];
|
||||
int32 mana = procSpell->CalculateSimpleValue(SpellEffectIndex(i));
|
||||
CastCustomSpell(this, 54986, NULL, &mana, NULL, true, castItem, triggeredByAura);
|
||||
break;
|
||||
}
|
||||
|
|
@ -7252,7 +7253,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
|
|||
// 27526; - drain mana if possible
|
||||
case 43820: // Charm of the Witch Doctor (Amani Charm of the Witch Doctor trinket)
|
||||
// Pct value stored in dummy
|
||||
basepoints[0] = pVictim->GetCreateHealth() * auraSpellInfo->EffectBasePoints[EFFECT_INDEX_1] / 100;
|
||||
basepoints[0] = pVictim->GetCreateHealth() * auraSpellInfo->CalculateSimpleValue(EFFECT_INDEX_1) / 100;
|
||||
target = pVictim;
|
||||
break;
|
||||
//case 45205: break; // Copy Offhand Weapon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue