Quantcast

Fixed a bug in Earthquake test

Taracque [11-26-13 - 18:07]
Fixed a bug in Earthquake test
Filename
Change_log.txt
Elementarist.lua
Elementarist.toc
modules/elemental.lua
diff --git a/Change_log.txt b/Change_log.txt
index 2bb3f30..dd26c2c 100755
--- a/Change_log.txt
+++ b/Change_log.txt
@@ -1,3 +1,6 @@
+**v3.2.4**
+* Fixed: Earthquake logic was bugged
+
 **v3.2.1**
 * Fixed: Wrong logic, if both alchemist flask, and Crystal of Insanity presents

diff --git a/Elementarist.lua b/Elementarist.lua
index ed35e2d..3c304a6 100755
--- a/Elementarist.lua
+++ b/Elementarist.lua
@@ -1,5 +1,5 @@
 -------------------------------------------------------------------------------
--- Elementarist 3.2.3
+-- Elementarist 3.2.4
 --
 -- Shows the advised spell for an elemental shaman for optimal DPS output.
 -------------------------------------------------------------------------------
@@ -8,7 +8,7 @@ Elementarist = {Locals = {}}

 local L = Elementarist.Locals

-Elementarist.versionNumber = '3.2.3';
+Elementarist.versionNumber = '3.2.4';
 Elementarist.enabled = true;
 Elementarist.playerName = UnitName("player")
 Elementarist.playerGUID = UnitGUID("player")
diff --git a/Elementarist.toc b/Elementarist.toc
index dd6c2af..39573c1 100755
--- a/Elementarist.toc
+++ b/Elementarist.toc
@@ -2,7 +2,7 @@
 ## Title: Elementarist
 ## Notes: Elemental shaman spell rotation helper
 ## Author: Taracque, Felmosórongy of Arathor
-## Version: 3.2.3
+## Version: 3.2.4
 ## SavedVariables: ElementaristDB
 ## OptionalDeps: OmniCC, SpellFlash
 ## Dependencies:
diff --git a/modules/elemental.lua b/modules/elemental.lua
index ef84539..f80633d 100755
--- a/modules/elemental.lua
+++ b/modules/elemental.lua
@@ -371,12 +371,10 @@ Elementarist.elemental = {

 		-- if >=4 foes are available, and Earthquake not on cd
 		if (ElementaristDB.EnableEQ) then
-			if (exspell1 ~= Elementarist.SpellList["Earthquake"]) and (exspell2 ~= Elementarist.SpellList["Earthquake"]) then
-				if (Elementarist.person["foeCount"]>=4) then
-					d = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Earthquake"])
-					if (d<0.5) then
-						return Elementarist.SpellList["Earthquake"]
-					end
+			if (Elementarist.person["foeCount"]>=1) then
+				d = Elementarist:GetSpellCooldownRemaining(Elementarist.SpellList["Earthquake"])
+				if (d<0.5) then
+					return Elementarist.SpellList["Earthquake"]
 				end
 			end
 		end