|
楼主 |
发表于 2019-2-28 07:52:42
|
显示全部楼层
的确john好像更新接口了,加了击回,等老大测试。各位如果想一喝药水,自动开翅膀,请自行改DemonHunterShadowPowerPlugin.cs 成下面:如果用多重再注释掉。下面还加了自动触发残影。
CreateCastRule()
.IfInTown().ThenNoCastElseContinue()
.IfCastingIdentify().ThenNoCastElseContinue()
.IfCastingPortal().ThenNoCastElseContinue()
.IfOnCooldown().ThenNoCastElseContinue()
.IfCanCastBuff().ThenContinueElseNoCast()
.IfCanCastSimple().ThenContinueElseNoCast()
.IfTrue(IsPotionOnCoolDown).ThenCastElseContinue()
.IfEnoughMonstersNearby(ctx => 40, ctx => 1).ThenContinueElseNoCast()
.IfSpecificBuffIsAboutToExpire(hud.Sno.SnoPowers.ElusiveRing, 1, 30, 100).ThenCastElseContinue();
private bool IsPotionOnCoolDown(TestContext ctx)
{
bool IsOnCooldown;
double Cooldown;
Cooldown = (Hud.Game.Me.Powers.HealthPotionSkill.CooldownFinishTick - Hud.Game.CurrentGameTick) / 60d;
IsOnCooldown = Cooldown < 30 && Cooldown > 29.6 ? true : false;
return IsOnCooldown;
}
|
|