che_필살 예시 구현
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import type { RandUtil } from "@sammo/crypto";
|
||||
import { BaseWarUnitTrigger } from "../Trigger/BaseWarUnitTrigger.js";
|
||||
import type { WarUnit, WarUnitEnv } from "../WarUnit.js";
|
||||
import { PRIORITY } from "../Trigger/ObjectTrigger.js";
|
||||
|
||||
export class che_필살강화_회피불가 extends BaseWarUnitTrigger {
|
||||
protected override priority = PRIORITY.PRE + 150;
|
||||
|
||||
actionWar(self: WarUnit, oppose: WarUnit, selfEnv: WarUnitEnv, opposeEnv: WarUnitEnv, rng: RandUtil): boolean {
|
||||
if(!self.hasActivatedSkill("필살")){
|
||||
return true;
|
||||
}
|
||||
|
||||
oppose.activateSkill("회피불가");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user