Elin Decompiled Documentation EA 23.222 Stable nyan
Loading...
Searching...
No Matches
ActWhirlwind.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
3public class ActWhirlwind : Ability
4{
5 public override bool CanPerform()
6 {
7 if (Act.TC == null)
8 {
9 return false;
10 }
11 return ACT.Melee.CanPerform();
12 }
13
14 public override bool Perform()
15 {
16 List<Chara> list = Act.CC.pos.ListCharasInNeighbor((Chara c) => !c.pos.Equals(Act.CC.pos));
17 Act.CC.PlaySound("ab_shred2");
18 Act.CC.Say("abWhirlwind", Act.CC);
19 foreach (Chara item in list.Copy())
20 {
21 Act.TC = item;
23 {
24 Act.TC.PlayEffect("ab_bladestorm");
26 }
27 }
28 return true;
29 }
30}
Definition: ACT.cs:6
static ActMelee Melee
Definition: ACT.cs:15
override bool CanPerform()
Definition: ActMelee.cs:73
override bool Perform()
Definition: ActMelee.cs:97
override bool CanPerform()
Definition: ActWhirlwind.cs:5
override bool Perform()
Definition: ActWhirlwind.cs:14
Definition: ACT.cs:62
static Card TC
Definition: ACT.cs:79
static Chara CC
Definition: ACT.cs:77
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6009
Point pos
Definition: Card.cs:59
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:6043
virtual bool IsAliveInCurrentZone
Definition: Card.cs:2115
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:6661
Definition: Chara.cs:10
override bool IsAliveInCurrentZone
Definition: Chara.cs:559
List< Chara > ListCharasInNeighbor(Func< Chara, bool > func)
Definition: Point.cs:1188
bool Equals(int _x, int _z)
Definition: Point.cs:948