cedced30 1 Posted August 18, 2018 Share Posted August 18, 2018 Hi, Fisrt of all i'm a beginner at c# and i'm having lots of fun tinkering class profiles. I'd like to know how to check if x spell is usable (for example, i'd like to know if charge is usable as one of the conditions to switch to battle stance, i've been searching this for hours). Could anyone post an example of code please? Link to comment https://wrobot.eu/forums/topic/9956-c-how-to-flag-a-spell-usable-or-not/ Share on other sites More sharing options...
cedced30 1 Posted August 18, 2018 Author Share Posted August 18, 2018 nevermind, i think i foud the answer :) fisrt make sure the spell is in the list: public Spell Charge = new Spell("Charge"); then use Charge.IsSpellUsable to return true of false. Link to comment https://wrobot.eu/forums/topic/9956-c-how-to-flag-a-spell-usable-or-not/#findComment-46678 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now