xy-server/game/skill/pet/CangFengXuShi.ts
2025-04-23 09:34:08 +08:00

47 lines
1.7 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { ESkillType,EBuffType,EMagicType,EActionOn, EActionType, EAttrTypeL1, ESkillQuality } from "../../role/EEnum";
import SkillBase from "../core/SkillBase";
import SKDataUtil from "../../gear/SKDataUtil";
import GameUtil from "../../core/GameUtil";
//技能效果被动技能主动行动之后若主人未倒地则有X%的几率给主人添加隐身效果,持续2回合;
export default class CangFengXuShi extends SkillBase {
constructor() {
super();
this.skill_id = ESkillType.CangFengXuShi;
this.skill_name = '藏锋蓄势';
this.action_type = EActionType.PASSIVE;
this.effectMap = {
[EAttrTypeL1.FASHUDUOSHAN]: { add: 0 },
// [EAttrTypeL1.PHY_DEADLY]: { add: 0 }
};
this.skill_type=EMagicType.HIDING;
/**Buff类型无buff/循环伤害/一次计算 */
this.buff_type = EBuffType.ONCE;
/**效果字典 */
// this.effectMap = {};
/** 技能类型*/
this.kind = ESkillType.CangFengXuShi;
/** 技能 品质*/
this.quality = EMagicType.HIDING;
/** 技能冷却时间*/
// this.cooldown = 0; // 技能冷却时间
/**技能回合限制 前几回合不能用 */
// this.limit_round = 0; // 技能回合限制 前几回合不能用
/** 技能限制使用次数*/
// this.limit_times = 0;// 技能限制使用次数
/** 技能作用于 0 all 1 敌人 2 自己人*/
this.act_on = EActionOn.SELF;// 技能作用于 0 all 1 敌人 2 自己人
}
getEffect(params:any=null):any{
let ret = SKDataUtil.clone(GameUtil.skillEffect);
ret.round = 2;
ret.yinshen = 1;
return ret;
}
}