Created
June 25, 2011 13:41
-
-
Save tobmaps/1046503 to your computer and use it in GitHub Desktop.
Shaman T10 Elemental 4P Bonus fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp | |
index c08fb51..79eae39 100755 | |
--- a/src/server/game/Entities/Unit/Unit.cpp | |
+++ b/src/server/game/Entities/Unit/Unit.cpp | |
@@ -7252,6 +7252,26 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger | |
} | |
return false; | |
} | |
+ // Item - Shaman T10 Elemental 4P Bonus | |
+ case 70817: | |
+ { | |
+ // try to find spell Flame Shock on the target | |
+ if (AuraEffect const* aurEff = target->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_SHAMAN, 0x10000000, 0x0, 0x0, GetGUID())) | |
+ { | |
+ Aura* flameShock = aurEff->GetBase(); | |
+ int32 maxDuration = flameShock->GetMaxDuration(); | |
+ int32 newDuration = flameShock->GetDuration() + 2 * aurEff->GetAmplitude(); | |
+ | |
+ flameShock->SetDuration(newDuration); | |
+ // is it blizzlike to change max duration for FS? | |
+ if (newDuration > maxDuration) | |
+ flameShock->SetMaxDuration(newDuration); | |
+ | |
+ return true; | |
+ } | |
+ // if not found Flame Shock | |
+ return false; | |
+ } | |
case 63280: // Glyph of Totem of Wrath | |
{ | |
if (procSpell->SpellIconID != 2019) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment