diff options
author | Subv <s.v.h21@hotmail.com> | 2012-04-13 11:53:43 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-04-13 11:54:36 -0500 |
commit | 5466092d23a5e01c8edddb6a54390b4df96889b8 (patch) | |
tree | d7f9fce29c24cb5d2ecd78061c879f1696b99276 | |
parent | c1ba60d68cdb1f3acf97a2b94fe336b35cf4c777 (diff) |
Core/Spells: Fixed Recklessness charges being dropped twice.
Closes #932
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index eebfd25e3d4..8ecd22ec629 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -8200,6 +8200,16 @@ bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, Sp CastCustomSpell(this, 70845, &basepoints0, NULL, NULL, true); break; } + // Recklessness + case 1719: + { + //! Possible hack alert + //! Don't drop charges on proc, they will be dropped on SpellMod removal + //! Before this change, it was dropping two charges per attack, one in ProcDamageAndSpellFor, and one in RemoveSpellMods. + //! The reason of this behaviour is Recklessness having three auras, 2 of them can not proc (isTriggeredAura array) but the other one can, making the whole spell proc. + *handled = true; + break; + } default: break; } |