All pastes #957382 Raw Edit

Anonymous

public text v1 · immutable
#957382 ·published 2008-03-25 22:50 UTC
rendered paste body
Index: src/game/Unit.cpp
===================================================================
--- src/game/Unit.cpp	(revision 5491)
+++ src/game/Unit.cpp	(working copy)
@@ -4465,17 +4465,19 @@
                     return;
                 }
             }
-            if( ((Player*)this)->HasSpellCooldown(32910))
+            if( ((Player*)this)->HasSpellCooldown(windfurySpellId))
                 return;
 
+            ((Player*)this)->AddSpellCooldown(windfurySpellId,0,time(NULL) + 3);
+
             SpellEntry const* windfurySpellEntry = sSpellStore.LookupEntry(windfurySpellId);
 
             int32 addvalue = windfurySpellEntry->EffectBasePoints[0]+windfurySpellEntry->EffectBaseDice[0];
 
             CastCustomSpell(this, 32910, &addvalue, NULL, NULL, true, castItem, triggeredByAura);
 
-            ((Player*)this)->AddSpellCooldown(32910,0,time(NULL) + 3);
 
+
             return;
         }