private static void CustomAntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser) { if (!gapcloser.Sender.IsValidTarget()) { return; } if (Menu.Item("QGapcloser").IsActive() && Q.CanCast(gapcloser.Sender)) { Q.Cast(gapcloser.Sender); } if (Menu.Item("WGapcloser").IsActive() && W.CanCast(gapcloser.Sender) && W.CastOnUnit(gapcloser.Sender)) { } }
private static void CustomAntiGapcloser_OnEnemyGapcloser(TreeLib.Core.ActiveGapcloser gapcloser) { if (!gapcloser.Sender.LSIsValidTarget()) { return; } if (getCheckBoxItem(qMenu, "QGapcloser") && Q.CanCast(gapcloser.Sender)) { Q.Cast(gapcloser.Sender); } if (getCheckBoxItem(wMenu, "WGapcloser") && W.CanCast(gapcloser.Sender) && W.CastOnUnit(gapcloser.Sender)) { } }
private static void CustomAntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser) { if (!gapcloser.Sender.IsValidTarget()) { return; } if (Menu.Item("QGapcloser").IsActive() && Q.CanCast(gapcloser.Sender)) { Q.Cast(gapcloser.Sender); } if (Menu.Item("WGapcloser").IsActive() && W.CanCast(gapcloser.Sender) && W.CastOnUnit(gapcloser.Sender)) {} }