`` refactor(fight/effect): 重构效果系统,优化效果存储结构和叠层逻辑,移除EffectID结构``
This commit is contained in:
@@ -21,11 +21,11 @@ type StatusNotSkill struct {
|
||||
// 不能出手
|
||||
func (e *StatusNotSkill) Skill_Hit_Pre(ctx input.Ctx) bool {
|
||||
if e.EffectStatus.Status == info.PetStatus.Sleep {
|
||||
// tt := &StatusSleep{}
|
||||
// tt.SetArgs(e.Input, 0) //睡眠没参数
|
||||
// tt.ID((- int(info.PetStatus.Sleep))) //添加ID
|
||||
|
||||
ctx.AddEffect(&input.EffectID{ //对对方添加出手解除效果
|
||||
ID: -1,
|
||||
Effect: &StatusSleep{},
|
||||
})
|
||||
// ctx.AddEffect(tt)
|
||||
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user