internal override void Cast(Character attacker, Character target) { attacker.Attack(target, Globals.ELEMENT_NATURE, Name, Power * 15); if (attacker is PC) attacker.Element = Globals.ELEMENT_NATURE; }
internal override void Cast(Character attacker, Character target) { attacker.Attack(target, Globals.ELEMENT_FIRE, Name, Power * 15); if (attacker is PC) { attacker.Element = Globals.ELEMENT_FIRE; } }
internal void use(Character user, Character target) { if (Globals.IS_SET(type, Globals.TYPE_CONSUMABLE_POTION)) target.Damage(Globals.ELEMENT_NONE, -(power * 25), user.Name, "", false); else if (Globals.IS_SET(type, Globals.TYPE_CONSUMABLE_ETHER)) target.Damage(Globals.ELEMENT_NONE, -(power * 25), user.Name, "", true); else user.Attack(target, type, this.name, power * 25); }
internal void use(Character user, Character target) { if (Globals.IS_SET(type, Globals.TYPE_CONSUMABLE_POTION)) { target.Damage(Globals.ELEMENT_NONE, -(power * 25), user.Name, "", false); } else if (Globals.IS_SET(type, Globals.TYPE_CONSUMABLE_ETHER)) { target.Damage(Globals.ELEMENT_NONE, -(power * 25), user.Name, "", true); } else { user.Attack(target, type, this.name, power * 25); } }