示例#1
0
        public void MirrorImage_Callback()
        {
            HideEffect();
            Hidden   = true;
            CantWalk = true;
            Blessed  = true;
            var mob1 = new LockeColeMirrorImage();
            var mob2 = new LockeColeMirrorImage();
            var mob3 = new LockeColeMirrorImage();

            mob1.Hidden   = true;
            mob1.CantWalk = true;
            mob1.Blessed  = true;
            mob2.Hidden   = true;
            mob2.CantWalk = true;
            mob2.Blessed  = true;
            mob3.Hidden   = true;
            mob3.CantWalk = true;
            mob3.Blessed  = true;

            SetHits(Hits);

            Timer.DelayCall(TimeSpan.FromSeconds(2), () =>
            {
                mob1.MoveToWorld(Location, Map);
                mob2.MoveToWorld(Location, Map);
                mob3.MoveToWorld(Location, Map);

                mob1.SetHits(MirrorImageHealth);
                mob2.SetHits(MirrorImageHealth);
                mob3.SetHits(MirrorImageHealth);

                HideEffect();
                mob1.HideEffect();
                mob2.HideEffect();
                mob3.HideEffect();

                Hidden   = false;
                CantWalk = false;
                Blessed  = false;

                mob1.Hidden   = false;
                mob1.CantWalk = false;
                mob1.Blessed  = false;
                mob2.Hidden   = false;
                mob2.CantWalk = false;
                mob2.Blessed  = false;
                mob3.Hidden   = false;
                mob3.CantWalk = false;
                mob3.Blessed  = false;

                CurrentSpell.Clear();
            });
        }
示例#2
0
        public void MirrorImage_Callback()
        {
            HideEffect();
            Hidden = true;
            CantWalk = true;
            Blessed = true;
            var mob1 = new LockeColeMirrorImage();
            var mob2 = new LockeColeMirrorImage();
            var mob3 = new LockeColeMirrorImage();

            mob1.Hidden = true;
            mob1.CantWalk = true;
            mob1.Blessed = true;
            mob2.Hidden = true;
            mob2.CantWalk = true;
            mob2.Blessed = true;
            mob3.Hidden = true;
            mob3.CantWalk = true;
            mob3.Blessed = true;

            SetHits(Hits);

            Timer.DelayCall(TimeSpan.FromSeconds(2), () =>
            {
                mob1.MoveToWorld(Location, Map);
                mob2.MoveToWorld(Location, Map);
                mob3.MoveToWorld(Location, Map);

                mob1.SetHits(MirrorImageHealth);
                mob2.SetHits(MirrorImageHealth);
                mob3.SetHits(MirrorImageHealth);

                HideEffect();
                mob1.HideEffect();
                mob2.HideEffect();
                mob3.HideEffect();

                Hidden = false;
                CantWalk = false;
                Blessed = false;

                mob1.Hidden = false;
                mob1.CantWalk = false;
                mob1.Blessed = false;
                mob2.Hidden = false;
                mob2.CantWalk = false;
                mob2.Blessed = false;
                mob3.Hidden = false;
                mob3.CantWalk = false;
                mob3.Blessed = false;

                CurrentSpell.Clear();
            });
        }