fix(fight): 战斗修改
This commit is contained in:
@@ -38,7 +38,7 @@ type EffectStat struct {
|
||||
// -----------------------------------------------------------
|
||||
// 技能触发时调用
|
||||
// -----------------------------------------------------------
|
||||
func (e *EffectStat) OnSkill(ctx input.Ctx) bool {
|
||||
func (e *EffectStat) OnSkill() bool {
|
||||
if !e.Hit() {
|
||||
return true
|
||||
}
|
||||
@@ -74,10 +74,10 @@ func (e *EffectStat) OnSkill(ctx input.Ctx) bool {
|
||||
// 执行属性变化
|
||||
if e.Etype {
|
||||
// 对方属性变化
|
||||
ctx.SetProp(e.Input, int8(statIndex), int8(level), opType)
|
||||
e.Ctx().Opp.SetProp(e.Ctx().Our, int8(statIndex), int8(level), opType)
|
||||
} else {
|
||||
// 自身属性变化
|
||||
e.Input.SetProp(e.Input, int8(statIndex), int8(level), opType)
|
||||
e.Ctx().Our.SetProp(e.Ctx().Our, int8(statIndex), int8(level), opType)
|
||||
}
|
||||
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user