What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Talent Spec Spells, probably a really quick problem for a clever person to help me

ossirian

New Member
Joined
May 5, 2011
Messages
241
Reaction score
5
I'm looking to make my CC return true if my character has a spell in his spellbook



public bool SpecSpell(string name)
{
return SpellManager.CanCast(name, me);
}

an example would be this in use,

CastSpell("Icy Touch", a => SC.SpecSpell("Frost Strike"), "TEST"),

a= a true return

the idea is, this line will force "icy touch" to be cast only if frost strike is available in the characters spell book and output "TEST" in hb, if it isnt then the line should return false and be ignored.


i'm trying this, but have exceeded my sessions apparently.
 
SpellManager.HasSpell("Icy Touch")
 
no
public bool SpecSpell(string name)
{
return SpellManager.HasSpell(name);
}
This one is and is called like SpecSpell("Icy Touch");
 
no
public bool SpecSpell(string name)
{
return SpellManager.HasSpell(name);
}
This one is and is called like SpecSpell("Icy Touch");

ah yes ofc, sorry.

thanks alot apoc and gilderoy you guys rock.
 
While i'm asking, is there a command such as;

SpellManager.HasTalent(name);

?
 
Back
Top