Elin Modding Docs Doc
Loading...
Searching...
No Matches
GoalSiege.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x0200022F RID: 559
5public class GoalSiege : Goal
6{
7 // Token: 0x06000FBA RID: 4026 RVA: 0x00071AC8 File Offset: 0x0006FCC8
8 public override IEnumerable<AIAct.Status> Run()
9 {
10 if (this.target == null || !this.target.IsAliveInCurrentZone)
11 {
12 this.target = this.GetDestCard();
13 }
14 if (this.target != null)
15 {
16 yield return base.DoGoto(this.target, null);
17 this.owner.DoHostileAction(this.target.Chara, false);
18 }
19 yield break;
20 }
21
22 // Token: 0x06000FBB RID: 4027 RVA: 0x00071AD8 File Offset: 0x0006FCD8
23 public Card GetDestCard()
24 {
25 foreach (Chara chara in EClass._map.charas)
26 {
27 if (chara.faction == EClass.Home && chara.IsAliveInCurrentZone)
28 {
29 return chara;
30 }
31 }
32 return null;
33 }
34
35 // Token: 0x04000D8F RID: 3471
36 public Card target;
37}
Definition AIAct.cs:7
Definition Card.cs:13
Definition Chara.cs:12
Definition Goal.cs:5