protected override void OnTick() { if (!m_Owner.CanBeginAction(typeof(AncientPeerSpell))) { if (fake != null && !fake.Deleted) { loc = new Point3D(fake.X, fake.Y, fake.Z); m_Owner.Location = loc; m_Owner.Blessed = fake.Blessed; fake.Delete(); } m_Owner.BodyValue = m_OldBody; m_spell.RemovePeerMod(); m_Owner.EndAction(typeof(AncientPeerSpell)); BaseArmor.ValidateMobile(m_Owner); } }
public override void OnDoubleClick(Mobile from) { if (m_Owner != null && m_Owner == from) { m_Owner.Map = this.Map; m_Owner.Location = this.Location; m_Owner.BodyValue = m_OldBody; m_Owner.Blessed = this.Blessed; m_Owner.Direction = this.Direction; this.Delete(); m_Owner.SendMessage("You return to your body"); if (spell != null) { spell.RemovePeerMod(); } if (!m_Owner.CanBeginAction(typeof(AncientPeerSpell))) { m_Owner.EndAction(typeof(AncientPeerSpell)); } } }