/// <summary> /// Invoke a magic item. /// </summary> /// <param name="ch"></param> /// <param name="obj"></param> public static void Invoke(CharData ch, Object obj) { if (obj.HasAffect(Affect.AFFECT_STONESKIN) && !ch.IsAffected(Affect.AFFECT_STONESKIN)) { Spell spl = Spell.SpellList["stoneskin"]; if (spl != null) { spl.Invoke(ch, Math.Max(obj._level, ch.Level), ch); } } if (obj.HasAffect(Affect.AFFECT_FLYING) && !ch.IsAffected(Affect.AFFECT_FLYING)) { ch.SetAffectBit(Affect.AFFECT_FLYING); ch.SendText("Your feet rise off the ground.\r\n"); SocketConnection.Act("$n's feet rise off the ground.", ch, null, null, SocketConnection.MessageTarget.room); } return; }