mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10039] Partly revert [10033] for spell 44394 and ranks related code.
Not all ranks of spell have proper triggered spell info. Return to old more explicit code. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
ff2f722f49
commit
7f8ad96038
2 changed files with 3 additions and 5 deletions
|
|
@ -2222,14 +2222,12 @@ void Unit::CalculateAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolMask, D
|
|||
|
||||
int32 amount = int32(incanterAbsorption * (*itr)->GetModifier()->m_amount / 100);
|
||||
|
||||
uint32 triggered_id = itr_spellProto->EffectTriggerSpell[(*itr)->GetEffIndex()];
|
||||
|
||||
// apply normalized part of already accumulated amount in aura
|
||||
if (Aura* spdAura = GetAura(triggered_id, EFFECT_INDEX_0))
|
||||
if (Aura* spdAura = GetAura(44413, EFFECT_INDEX_0))
|
||||
amount += spdAura->GetModifier()->m_amount * spdAura->GetAuraDuration() / spdAura->GetAuraMaxDuration();
|
||||
|
||||
// Incanter's Absorption (triggered absorb based spell power, will replace existed if any)
|
||||
CastCustomSpell(this, triggered_id, &amount, NULL, NULL, true, NULL, *itr);
|
||||
CastCustomSpell(this, 44413, &amount, NULL, NULL, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10038"
|
||||
#define REVISION_NR "10039"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue