Skill.CanUse() returns false even when my skill is castable. I'm using the Enlighten gem to reduce the mana cost of my auras from 100% to 97% and Elreons's -8 mana accessory to allow my skill to be castable inside the 3% of mana I have left.
You are going to have to be more specific by posting the code.Skill.CanUse() returns false even when my skill is castable. I'm using the Enlighten gem to reduce the mana cost of my auras from 100% to 97% and Elreons's -8 mana accessory to allow my skill to be castable inside the 3% of mana I have left.
Log.InfoFormat(LokiPoe.InGameState.SkillBarPanel.Slot(3).CanUse().ToString());
Ok I think you are using log wrong.It's not my code. It's the OldRoutine that can't cast my skill. I just narrowed down the reason of why it can't cast my skill to the built in method Skill.CanUse().
Using this in the DevTab returns False even tho i have more mana than what is necessary to cast the skill.
Code:Log.InfoFormat(LokiPoe.InGameState.SkillBarPanel.Slot(3).CanUse().ToString());
Log.InfoFormat("{0}", LokiPoe.InGameState.SkillBarPanel.Slot(3).CanUse());
Might have to ask Drew about this when he wakes up.Hey sorry, it seems we misunderstood each other. My problem is not with displaying the value of a boolean in the console. My problem is that i think that the built in method Skill.CanUse() does not account for Elreon's "-8 to Mana Cost of Skills".
Here's an example of my situation:
My skill requires 24 mana to cast.
Elreon's accessory reduces this mana cost to 16.
I have 20 mana available.
Even if 16 < 20, Skill.CanUse() returns False.
My hypothesis is that Skill.CanUse() does not account for Elreon's "-8 to Mana Cost of Skills". However, I cannot verify that since I do not have access to Pushedx code for the method Skill.CanUse().