aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-07-28 22:41:15 +0200
committerQAston <none@none>2009-07-28 22:41:15 +0200
commit09637795defc935755713be0e4a26aa43ae1ae91 (patch)
tree07a07a7fbd62785cc22a619bb3d2bd3d6016a51c /src
parentc15c25aca40d30b9ac978f3f6476dc52fa6ff94b (diff)
*Remove obsolete code for Judgement of Light.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index b10bc30edf2..26c2728c6e8 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6199,14 +6199,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
// 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);
pVictim->CastCustomSpell(pVictim, 20267, &basepoints0, 0, 0, true, 0, triggeredByAura);
return true;
}