Jump to content

c# : how to flag a spell usable or not?


Recommended Posts


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
Share on other sites

nevermind, i think i foud the answer :)

fisrt make sure the spell is in the list: 

public Spell Charge = new Spell("Charge");

then use 


to return true of false.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...