-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathRush.cs
37 lines (31 loc) · 1.01 KB
/
Rush.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using HREngine.API;
using HREngine.API.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HREngine.Bots
{
public class Rushi : Bot
{
protected override HRCard GetMinionByPriority(HRCard lastMinion)
{
HREntity result = null;
if (HRPlayer.GetLocalPlayer().GetNumEnemyMinionsInPlay() <
HRPlayer.GetLocalPlayer().GetNumFriendlyMinionsInPlay() ||
HRPlayer.GetLocalPlayer().GetNumEnemyMinionsInPlay() < 4)
{
result = HRBattle.GetNextMinionByPriority(MinionPriority.Hero);
}
else
result = HRBattle.GetNextMinionByPriority(MinionPriority.LowestHealth);
if (result != null && (lastMinion == null || lastMinion != null && lastMinion.GetEntity().GetCardId() != result.GetCardId()))
return result.GetCard();
return null;
}
protected override Behavior getBotBehave()
{
return new BehaviorRush();
}
}
}