aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-08-17 12:02:33 +0200
committerAnubisss <none@none>2009-08-17 12:02:33 +0200
commit609b134996ef51cebf39f38151d6b4706d0f0b87 (patch)
tree8fdbe45cbb1b0b0f1bbdcb9f4194ff84326ed490 /src
parent69c7ba72557f3740ed96bc68a0fed4ab21eb5344 (diff)
*Fix this part of Frozen Power: "when used on targets at or further than 15 yards from you".
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 21d69b89f59..7e6e304b9ea 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -6470,6 +6470,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
// Frozen Power
if (dummySpell->SpellIconID == 3780)
{
+ if (this->GetDistance(target) < 15.0f)
+ return false;
float chance = triggerAmount;
if (!roll_chance_f(chance))
return false;