aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-01 16:12:51 -0600
committermegamage <none@none>2009-02-01 16:12:51 -0600
commitdb8301ce633e0009d9e528794f63be67095c7a7f (patch)
tree5e82cc9ed7deb61a6e7ba37581782bcb77ece5e3 /src/game/Unit.cpp
parent50fa9c5933b582f0f506e52dc78240729cb9cfa0 (diff)
Add custom chance for some spells in 16180 and ranks (added in 308)
Show enchant id in error log Signed-off-by: DiSlord <dislord@nomail.com> --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 0e9f6651401..6694e38a854 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5871,6 +5871,9 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
// Improved Water Shield
if (dummySpell->SpellIconID == 2287)
{
+ // Lesser Healing Wave need aditional 60% roll
+ if (procSpell->SpellFamilyFlags & 0x0000000000000080LL && !roll_chance_i(60))
+ return false;
// lookup water shield
AuraList const& vs = GetAurasByType(SPELL_AURA_PROC_TRIGGER_SPELL);
for(AuraList::const_iterator itr = vs.begin(); itr != vs.end(); ++itr)