|
发表于 2019-12-12 10:14:03
|
显示全部楼层
代码覆盖\TurboHUD\plugins\LightningMod\SkillHandlers\Crusader\CrusaderCondemnPlugin.cs
- namespace Turbo.Plugins.LightningMod
- {
- public class CrusaderCondemnPlugin : AbstractSkillHandler, ISkillHandler
- {
- public CrusaderCondemnPlugin()
- : base(CastType.BuffSkill, CastPhase.AutoCast, CastPhase.Collect, CastPhase.Move, CastPhase.Attack)
- {
- Enabled = false;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- AssignedSnoPower = Hud.Sno.SnoPowers.Crusader_Condemn;
- CreateCastRule()
- .IfCanCastSkill(100, 150, 1000).ThenContinueElseNoCast()
- .IfInTown().ThenNoCastElseContinue()
- .IfCastingIdentify().ThenNoCastElseContinue()
- .IfCastingPortal().ThenNoCastElseContinue()
- .IfOnCooldown().ThenNoCastElseContinue()
- .IfSpecificBuffIsActive(Hud.Sno.SnoPowers.Crusader_SteedCharge).ThenNoCastElseContinue()//骑马时
- .IfPrimaryResourceIsEnough(0, ctx => 40).ThenContinueElseNoCast()
- .IfEliteOrBossIsNearby(ctx => 40).ThenCastElseContinue()
- .IfEnoughMonstersNearby(ctx => 40, ctx => 1).ThenCastElseContinue()
- ;
- }
- }
- }
复制代码
|
|