Grand Deluisions

Questions about addon itself.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
1 post Page 1 of 1
riceslayer001
Posts:1
Joined:04 May 2020, 14:14
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable


Hello there!

I'm trying to modify the current MaxDps Outlaw rogue rotation to remind me to vanish when I get the "Grand Delusions" debuff (Thing from Beyond).

So far I got this:

local _, addonTable = ...;

--- @type MaxDps
if not MaxDps then return end

local MaxDps = MaxDps;
local UnitPower = UnitPower;
local UnitPowerMax = UnitPowerMax;
local GetPowerRegen = GetPowerRegen;
local pairs = pairs;
local ComboPoints = Enum.PowerType.ComboPoints;
local Energy = Enum.PowerType.Energy;
local Rogue = addonTable.Rogue;

local OL = {
Stealth = 1784,
MarkedForDeath = 137619,
RollTheBones = 193316,
SliceAndDice = 5171,
AdrenalineRush = 13750,
LoadedDice = 256170,
BetweenTheEyes = 199804,
SnakeEyes = 275863,
GhostlyStrike = 196937,
DeeperStratagem = 193531,

SkullAndCrossbones = 199603,
TrueBearing = 193359,
RuthlessPrecision = 193357,
GrandMelee = 193358,
BuriedTreasure = 199600,
Broadside = 193356,

BladeFlurry = 13877,
Opportunity = 195627,
QuickDraw = 196938,
PistolShot = 185763,
KeepYourWitsAboutYou = 288988,
Deadshot = 272940,
SinisterStrike = 193315,
KillingSpree = 51690,
BladeRush = 271877,
Vanish = 1856,
Dispatch = 2098,
Ambush = 8676,

StealthAura = 1784,
VanishAura = 11327,
GrandDelusionsAura = 319695,
};

-- call_action_list,name=cds;
local result = Rogue:OutlawCds();
if result then return result; end

function Rogue:OutlawCds()
local fd = MaxDps.FrameData;
local cooldown = fd.cooldown;
local buff = fd.buff;
local debuff = fd.debuff;
local talents = fd.talents;
local targets = fd.targets;
local timeToDie = fd.timeToDie;
local energy = fd.energy;
local energyTimeToMax = fd.energyTimeToMax;
local comboPoints = fd.comboPoints;
local cpMaxSpend = fd.cpMaxSpend;
local stealthed = fd.stealthed;
local comboPointsDeficit = fd.comboPointsDeficit;
local bladeFlurrySync = fd.bladeFlurrySync;

-- vanish,if=debuff.grand_delusions.up;
if cooldown[OL.Vanish].ready and debuff[OL.GrandDelusionsAura].up then
return OL.Vanish;
end
end

Am I doing something wrong here?

Thanks in advance!
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
1 post Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany