战斗修改

This commit is contained in:
2025-09-29 02:40:35 +08:00
parent 7df70f2375
commit 91d0d29ec9
28 changed files with 332 additions and 281 deletions

View File

@@ -1,12 +1,15 @@
package node
import "blazing/logic/service/fight/input"
// 切精灵返回false重写change方法来实现切换效果
// 精灵切换相关触发
func (e *EffectNode) OnSwitchIn() bool {
return true
func (e *EffectNode) OnSwitchIn(ctx input.Ctx) bool {
panic("not implemented") // TODO: Implement
}
func (e *EffectNode) OnSwitchOut() bool {
func (e *EffectNode) OnSwitchOut(ctx input.Ctx) bool {
//下场默认清除effect
if e.Owner { //清除对方的我方施加uff
e.NotALive()
@@ -14,13 +17,13 @@ func (e *EffectNode) OnSwitchOut() bool {
return true
}
func (e *EffectNode) OnOwnerSwitchIn() bool {
func (e *EffectNode) OnOwnerSwitchIn(ctx input.Ctx) bool {
return true
}
func (e *EffectNode) OnOwnerSwitchOut(ctx input.Ctx) bool {
//自身下场清除掉自身的回合效果
//this.GetBattle().Effects[this.GetInput().UserID].RemoveEffect(this)
e.NotALive()
return true
}
func (e *EffectNode) OnOwnerSwitchOut() bool {
return true
}