/* * * */ 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); } }
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); } } } }
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; } } }
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; } } }
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); } } } }
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); } }
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; } }
public void setL(Obj_SpellLineMissile L) { pointL = L; endtime = Game.Time + 4; }
public void setR(Obj_SpellLineMissile R) { pointR = R; endtime = Game.Time + 4; }
public YasWall(Obj_SpellLineMissile L, Obj_SpellLineMissile R) { pointL = L; pointR = R; endtime = Game.Time + 4; }