Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions AutoZhonya/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@

namespace AutoZhonya
{
/*
* To do

/* To do
* Add Buffs for not detectable spells
*/
class Program
{

private static Obj_AI_Hero Player;
private static readonly Items.Item Zhonya = new Items.Item(3157, 0);
private static readonly Items.Item Wooglets = new Items.Item(3090, 0);
private static readonly Items.Item Seraph = new Items.Item(3040, 0);
private static readonly string Version = "1.0";
public static Menu Menu;
Expand Down Expand Up @@ -75,6 +76,7 @@ static void GameUpdate(EventArgs args)
BuffDetector();
if (Player.Health < Player.MaxHealth * 0.35 && Player.CountEnemiesInRange(300) >= 1 && (!SpellSlot.Q.IsReady() || !SpellSlot.W.IsReady() || !SpellSlot.E.IsReady() || !SpellSlot.R.IsReady()) && Player.Mana < Player.MaxMana * 80) {
Zhonya.Cast();
Wooglets.Cast();
}
}
}
Expand Down Expand Up @@ -186,7 +188,8 @@ static void BuffDetector()

public static bool zhonyaready()
{
return Zhonya.IsReady();
return (Zhonya.IsReady() || Wooglets.IsReady());
// return Wooglets.IsReady();
}

public static bool seraphready()
Expand Down