示例#1
0
        /*
         *
         *
         */
        private static void OnCreateObject(GameObject sender, EventArgs args)
        {
            //wall
            if (sender is Obj_SpellLineMissile)
            {
                Obj_SpellLineMissile missle = (Obj_SpellLineMissile)sender;
                if (missle.SData.Name == "yasuowmovingwallmisl")
                {
                    Yasuo.wall.setL(missle);
                }

                if (missle.SData.Name == "yasuowmovingwallmisr")
                {
                    Yasuo.wall.setR(missle);
                }
                //   Console.WriteLine(missle.SData.Name);
            }
            if (sender is Obj_SpellMissile && sender.IsEnemy)
            {
                Obj_SpellMissile missle = (Obj_SpellMissile)sender;
                // if(Yasuo.WIgnore.Contains(missle.SData.Name))
                //     return;
                // skillShots.Add(missle);
            }
        }
示例#2
0
        private static void OnCreateObject(GameObject sender, EventArgs args)
        {
            //wall
            if (sender.IsValid <Obj_SpellLineMissile>())
            {
                if (sender is Obj_SpellLineMissile)
                {
                    Obj_SpellLineMissile missle = (Obj_SpellLineMissile)sender;
                    if (missle.SData.Name == "yasuowmovingwallmisl")
                    {
                        Yasuo.wall.setL(missle);
                    }

                    if (missle.SData.Name == "yasuowmovingwallmisr")
                    {
                        Yasuo.wall.setR(missle);
                    }
                }
            }

            if (sender.IsValid <Obj_SpellLineMissile>() && sender.IsValid)
            {
                var s = sender as Obj_SpellLineMissile;
                if (s != null)
                {
                    if ((s).Target.IsMe)
                    {
                        TargetSpellDetector.setParticle(s);
                    }
                }
            }
        }
示例#3
0
 static void OnDelete(GameObject sender, EventArgs args)
 {
     if (sender is Obj_SpellLineMissile && sender.IsValid)
     {
         Obj_SpellLineMissile miss = sender as Obj_SpellLineMissile;
         if (miss.SpellCaster is Obj_AI_Hero && miss.SpellCaster.IsValid && miss.SpellCaster.IsMe && miss.SData.Name == "LissandraEMissile")
         {
             LissEMissile = null;
         }
     }
 }
示例#4
0
 public static void setParticle(Obj_SpellLineMissile part)
 {
     //Should add check if same spell :)
     foreach (var targ in ActiveTargeted)
     {
         if (targ.particle == null && targ.hadPart == false)
         {
             targ.particle = part;
             targ.hadPart  = true;
             return;
         }
     }
 }
示例#5
0
        private static void OnCreateObject(GameObject sender, EventArgs args)
        {
#pragma warning disable 0618
            //wall
            if (sender.IsValid <Obj_SpellLineMissile>())
            {
                if (sender is Obj_SpellLineMissile)
                {
                    Obj_SpellLineMissile missle = (Obj_SpellLineMissile)sender;
                    if (missle.SData.Name == "yasuowmovingwallmisl")
                    {
                        Yasuo.wall.setL(missle);
                    }

                    if (missle.SData.Name == "yasuowmovingwallmisr")
                    {
                        Yasuo.wall.setR(missle);
                    }
                }
            }
        }
示例#6
0
        private static void OnCreateObject(GameObject sender, EventArgs args)
        {
            //wall
            if (sender is Obj_SpellLineMissile)
            {
                Obj_SpellLineMissile missle = (Obj_SpellLineMissile)sender;
                if (missle.SData.Name == "yasuowmovingwallmisl")
                {
                    Yasuo.wall.setL(missle);
                }

                if (missle.SData.Name == "yasuowmovingwallmisr")
                {
                    Yasuo.wall.setR(missle);
                }
            }

            if (sender is MissileClient && ((MissileClient)sender).Target.IsMe)
            {
                TargetSpellDetector.setParticle((MissileClient)sender);
            }
        }
示例#7
0
        private static void OnCreateObject(GameObject sender, EventArgs args)
        {
            //wall
            if (sender is Obj_SpellLineMissile)
            {
                Obj_SpellLineMissile missle = (Obj_SpellLineMissile)sender;
                if (missle.SData.Name == "yasuowmovingwallmisl")
                {
                    Yasuo.wall.setL(missle);
                }

                if (missle.SData.Name == "yasuowmovingwallmisr")
                {
                    Yasuo.wall.setR(missle);
                }
                //   Console.WriteLine(missle.SData.Name);
            }
            if (sender is Obj_SpellMissile && sender.IsEnemy)
            {
                Obj_SpellMissile missle = (Obj_SpellMissile)sender;
            }
        }
示例#8
0
 public void setL(Obj_SpellLineMissile L)
 {
     pointL  = L;
     endtime = Game.Time + 4;
 }
示例#9
0
 public void setR(Obj_SpellLineMissile R)
 {
     pointR  = R;
     endtime = Game.Time + 4;
 }
示例#10
0
 public YasWall(Obj_SpellLineMissile L, Obj_SpellLineMissile R)
 {
     pointL  = L;
     pointR  = R;
     endtime = Game.Time + 4;
 }
示例#11
0
 public void setL(Obj_SpellLineMissile L)
 {
     pointL = L;
     endtime = Game.Time + 4;
 }
示例#12
0
 public void setR(Obj_SpellLineMissile R)
 {
     pointR = R;
     endtime = Game.Time + 4;
 }
示例#13
0
 public YasWall(Obj_SpellLineMissile L, Obj_SpellLineMissile R)
 {
     pointL = L;
     pointR = R;
     endtime = Game.Time + 4;
 }
示例#14
0
        static void OnDelete(GameObject sender, EventArgs args)
        {
            if (sender is Obj_SpellLineMissile && sender.IsValid)
            {
                Obj_SpellLineMissile miss = sender as Obj_SpellLineMissile;
                if (miss.SpellCaster is Obj_AI_Hero && miss.SpellCaster.IsValid && miss.SpellCaster.IsMe && miss.SData.Name == "LissandraEMissile")
                {
                    LissEMissile = null;

                }
            }
        }