@occultus/entity-api
Version:
Star Tenon entity api and utils
20 lines (18 loc) • 467 B
text/typescript
import { Entity, Player, RawMessage } from "@minecraft/server";
import { Skill } from "@occultus/skill-api";
/**
* 表示 Boss 技能的类
*/
export class BossSkill extends Skill {
constructor(
public id: string,
public cooldownTime: number,
public event: (executor: Entity, targets: Entity[]) => void,
public radius: number
) {
super(id, event, () => true);
}
getSkillType(): string {
return "bossSkill";
}
}