This commit is contained in:
1
2025-11-11 06:23:59 +00:00
parent a1107b57eb
commit a0905a59b4
2 changed files with 12 additions and 5 deletions

View File

@@ -142,7 +142,7 @@ func (our *Input) GetStatusBonus() float64 {
return maxBonus
}
func (our *Input) initeffectcache() {
func (our *Input) Initeffectcache() {
our.EffectCache = make([]Effect, 0) //先把上一回合数据清空,但是应该把本身延续类效果集成过来
for _, v := range our.Effects {
@@ -160,7 +160,7 @@ func (our *Input) initeffectcache() {
// 解析并 施加effect
func (our *Input) Parseskill(defender *Input, skill *action.SelectSkillAction) {
our.initeffectcache() //这里说明是延续的效果,每次复制出来一个新的就好了
our.Initeffectcache() //这里说明是延续的效果,每次复制出来一个新的就好了
//i.NewEffects = make([]Effect, 0) //这里说明是新增的效果
temparg := skill.SideEffectArgS