mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[8945] Update work triggered effect for 20271
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
ffca4301d0
commit
51bdaa6b0e
2 changed files with 2 additions and 9 deletions
|
|
@ -5988,14 +5988,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
// Judgement of Light
|
||||
case 20185:
|
||||
{
|
||||
// Get judgement caster
|
||||
Unit *caster = triggeredByAura->GetCaster();
|
||||
if (!caster)
|
||||
return false;
|
||||
float ap = caster->GetTotalAttackPowerValue(BASE_ATTACK);
|
||||
int32 holy = caster->SpellBaseDamageBonus(SPELL_SCHOOL_MASK_HOLY) +
|
||||
caster->SpellBaseDamageBonusForVictim(SPELL_SCHOOL_MASK_HOLY, this);
|
||||
basepoints0 = int32(ap*0.10f + 0.10f*holy);
|
||||
basepoints0 = int32( pVictim->GetMaxHealth() * triggeredByAura->GetModifier()->m_amount / 100 );
|
||||
pVictim->CastCustomSpell(pVictim, 20267, &basepoints0, NULL, NULL, true, NULL, triggeredByAura);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue