``` fix(fight): 添加Effect60技能触发前的空指针和攻击时间检查

This commit is contained in:
1
2026-01-03 02:04:55 +00:00
parent e341623fc0
commit 7071703d80

View File

@@ -31,6 +31,12 @@ func (e *Effect60) OnSkill() bool {
if !e.Hit() {
return true
}
if e.Ctx().SkillEntity == nil {
return true
}
if e.Ctx().AttackTime == 0 {
return true
}
e.Ctx().Opp.Damage(e.Ctx().Our, &info.DamageZone{
Type: info.DamageType.Fixed,
Damage: e.Args()[1]})