feat(fight): 新增试炼之塔和勇者之塔地图切换功能,优化战斗效果处理逻辑
This commit is contained in:
@@ -26,6 +26,7 @@ func (e *Effect38) OnSkill() bool {
|
||||
|
||||
tt := e.ID()
|
||||
tt.SetEffectType(input.EffectType.Sub)
|
||||
tt.SetCatchTime(e.Ctx().Opp.CurrentPet.Info.CatchTime)
|
||||
|
||||
ee.ID(tt)
|
||||
ee.SetArgs(e.Ctx().Our, e.SideEffectArgs...)
|
||||
@@ -35,7 +36,10 @@ func (e *Effect38) OnSkill() bool {
|
||||
|
||||
// 命中之后
|
||||
func (e *Effect38_sub) Turn_Start(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) {
|
||||
|
||||
//魂印特性有不在场的情况,绑定时候将精灵和特性绑定
|
||||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
||||
return
|
||||
}
|
||||
if e.Args()[0].Cmp(e.Ctx().Our.CurrentPet.GetMaxHP()) == -1 {
|
||||
|
||||
e.l.Do(func() {
|
||||
Reference in New Issue
Block a user