本帖最后由 michael_han1986 于 2019-2-22 10:03 编辑
[AppleScript] 纯文本查看 复制代码 namespace Turbo.Plugins.LightningMod
{
public class DemonHunterPreparationPlugin : AbstractSkillHandler, ISkillHandler
{
public DemonHunterPreparationPlugin()
: base(CastType.BuffSkill, CastPhase.AutoCast, CastPhase.Move, CastPhase.PreAttack)
{
Enabled = false;
}
public override void Load(IController hud)
{
base.Load(hud);
AssignedSnoPower = Hud.Sno.SnoPowers.DemonHunter_Preparation;
CreateCastRule()
.IfInTown().ThenNoCastElseContinue()
.IfCastingIdentify().ThenNoCastElseContinue()
.IfCastingPortal().ThenNoCastElseContinue()
.IfOnCooldown().ThenNoCastElseContinue()
.IfTrue(ctx => ctx.Skill.Rune == 0).ThenNoCastElseContinue()
.IfCanCastBuff().ThenContinueElseNoCast()
.IfCanCastSimple().ThenContinueElseNoCast()
.IfTrue(ctx => ctx.Skill.Rune == 3 && ctx.Skill.Player.Defense.HealthPct <= 55).ThenCastElseContinue()
.IfSecondaryResourceAmountIsBelow(ctx => 55).ThenCastElseContinue()
//55=86max←(20符文+12武器+12箭袋+12披风)-30回复量-1余量,只可下调
;
}
}
}
其实每个人的戒律上限不同,需要根据自己的戒律上限进行调整,如果带乔丹,还要加10,而其他部件如果不满12,则要下调
|