fix(fight): 修复战斗效果数值符号错误 在技能效果501中,修正了属性设置时effectValue的符号问题, 现在正确地应用负值效果。同时调整了代码格式以保持一致性。 ```
This commit is contained in:
@@ -15,9 +15,9 @@ func (e *Effect501) Skill_Use_ex() bool {
|
||||
damageDone := e.Ctx().Our.SumDamage
|
||||
|
||||
if damageDone.IntPart() < int64(damageThreshold) {
|
||||
effectType := int8(e.Args()[1].IntPart()) // XX类型
|
||||
effectType := int8(e.Args()[1].IntPart()) // XX类型
|
||||
effectValue := int8(e.Args()[2].IntPart()) // 等级-n
|
||||
e.Ctx().Opp.SetProp(e.Ctx().Our, effectType, effectValue)
|
||||
e.Ctx().Opp.SetProp(e.Ctx().Our, effectType, -effectValue)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user