aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-09-19 12:13:08 -0700
committermaximius <none@none>2009-09-19 12:13:08 -0700
commit0cf75ef9eaca43ebc9b7f8cde09428829989cf36 (patch)
tree24f56d1358b46ca0ad5dc513e3b1a3cdcd90bfb0 /src/game/Unit.cpp
parent15d85229fae45405557aa6b706681dabaf854ed5 (diff)
*Wintergrasp: Prevent defenders team to click the relic. Patch by Spp.
*Zum'Rah Area Trigger Script, Zum'Rah should become hostile when approached. By totoro. *Judgement of Light PPM based, not 100%. By Drevi. *Fix Deflection Exploit. By manuel, thanks to TheNecromancer and Gyullo. *Correct Wintergrasp Tenacity formulas, by Gyullo. *A Spirit Guide Escort Quest, code from SD2, patch by manuel. *TrullyOne/MeanMachine Waypoint System Restored. Patch by XTElite1. --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index a49c78bf918..8b77f5a4036 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -7533,6 +7533,14 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
trigger_spell_id = 26470;
break;
}
+ // Deflection
+ case 52420:
+ {
+ if(GetHealth()*100 / GetMaxHealth() >= 35)
+ return false;
+ break;
+ }
+
// Cheat Death
case 28845:
{