From c62e890bd2b45ad6b9c1699469b29fe772638a21 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Sat, 11 Jul 2020 00:30:33 +0300 Subject: [PATCH] oops --- .luacheckrc | 1 + WeakAuras/GenericTrigger.lua | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 6dc9785..a1f3d8b 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -49,6 +49,7 @@ globals = { "IsInRaid", "GetNumSubgroupMembers", "GetNumGroupMembers", + "GetClassColoredTextForUnit", "nop", "ActorPoolMixin", diff --git a/WeakAuras/GenericTrigger.lua b/WeakAuras/GenericTrigger.lua index 991ecf0..a4f5c79 100644 --- a/WeakAuras/GenericTrigger.lua +++ b/WeakAuras/GenericTrigger.lua @@ -3888,9 +3888,7 @@ do local class = select(2, UnitClass("player")) if class == "DRUID" then function WeakAuras.CalculatedGcdDuration() - local id = GetShapeshiftFormID() - local haste = GetHaste() - return id == 1 and 1 or max(0.75, 1.5 * 100 / (100 + GetCombatRatingBonus(CR_HASTE_SPELL))) + return GetShapeshiftForm() == 3 and 1 or max(0.75, 1.5 * 100 / (100 + GetCombatRatingBonus(CR_HASTE_SPELL))) end elseif class == "ROGUE" then function WeakAuras.CalculatedGcdDuration()