SpellCastCharge GetImbueSpellFromType(ImbueType type) { string id = ""; switch (type) { case ImbueType.Fire: id = "Fire"; break; case ImbueType.Lightning: id = "Lightning"; break; case ImbueType.Gravity: id = "Gravity"; break; } return(Player.currentCreature.mana.spells.Find(spell => spell.id == id) as SpellCastCharge); }
public void Imbue(ImbueType type) { Imbue(GetImbueSpellFromType(type)); }