ForsakenNGS / DruidMacroHelper

MIT License
15 stars 11 forks source link

Using /dmh energy prevents you from shifting when not in cat form #1

Closed vehystrix closed 3 years ago

vehystrix commented 3 years ago

Because your energy is 100 when you're not in cat form, you cannot use the macro with /dmh energy XX in it to swap to cat form.

To fix it, I simply added a check to see if the current form is indeed cat form before checking for the energy level

return statement for the DruidEnergy function (lines 109-110) should be changed to :

return (preventShift > 0) or (UnitPower("player",0)<manaCost) or
    ((GetShapeshiftForm() == 3) and (UnitPower("player",3)>maxEnergy) and (DruidMacroLocShiftable() == 0));
ForsakenNGS commented 3 years ago

Will be fixed with the next release, thanks for the feedback!