Dear visitor, welcome to Gaming Insight Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Anonymous

Unregistered

1

Monday, May 4th 2009, 4:12pm

Thorim: Lightning Charge timer (patch)

8)

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- old/Thorim.lua	2009-05-04 21:44:36.546875000 +1000
+++ new/Thorim.lua	2009-05-05 00:04:21.593750000 +1000
@@ -18,11 +18,13 @@
 local enrageTimer		= mod:NewEnrageTimer(309)
 
 local timerStormhammer		= mod:NewTimer(16, "TimerStormhammer", 62042)
+local timerLightningCharge	= mod:NewTimer(16, "TimerLightningCharge", 62466)
 local timerUnbalancingStrike	= mod:NewTimer(21, "TimerUnbalancingStrike", 62130)
 local timerHardmode		= mod:NewTimer(189, "TimerHardmode", 62042)
 
 local warnPhase2			= mod:NewAnnounce("WarningPhase2", 1)
 local warnStormhammer		= mod:NewAnnounce("WarningStormhammer", 2, 62470)
+local warnLightningCharge	= mod:NewAnnounce("WarningLightningCharge", 2, 62466)
 local warnUnbalancingStrike	= mod:NewAnnounce("UnbalancingStrike", 4, 62130)	-- nice blizzard, very new stuff, hmm or not? ^^ aq40 4tw :)
 local warningBomb			= mod:NewAnnounce("WarningBomb", 4)
 
@@ -64,6 +66,8 @@
 function mod:SPELL_CAST_SUCCESS(args)
 	if args.spellId == 62042 then -- Storm Hammer
 		timerStormhammer:Schedule(2)
+	elseif args.spellId == 62466 then	-- Lightning Charge
+		timerLightningCharge:Start()
 	elseif args.spellId == 62130 then	-- Unbalancing Strike
 		timerUnbalancingStrike:Start()
 	end


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- old/localization.en.lua	2009-05-04 21:44:36.546875000 +1000
+++ new/localization.en.lua	2009-05-04 21:52:30.562500000 +1000
@@ -342,16 +342,19 @@
 
 L:SetTimerLocalization{
 	TimerStormhammer		= "Stormhammer CD",
+	TimerLightningCharge    = "Lightning Charge CD",
 	TimerUnbalancingStrike	= "Unbalancing Strike CD",
 	TimerHardmode		= "Hard Mode"
 }
 
 L:SetOptionLocalization{
 	TimerStormhammer		= "Show Stormhammer Cooldown",
+	TimerLightningCharge	= "Show Timer for Lightning Charge",
 	TimerUnbalancingStrike	= "Show Timer for Unbalancing Strike",
 	TimerHardmode			= "Show Timer for Hard Mode",
 	UnbalancingStrike		= "Announce Unbalancing Strike Target",
 	WarningStormhammer		= "Announce Stormhammer Target",
+	WarningLightningCharge	= "Announce Lightning Charge",
 	WarningPhase2			= "Announce Phase 2",
 	UnbalancingStrike		= "Announce Unbalancing Strike",
 	WarningBomb				= "Announce Rune Detonation",

2

Monday, May 4th 2009, 5:26pm

thanks, with little changes merged into alpha ready for testing