``` fix(fight): 添加Effect60技能触发前的空指针和攻击时间检查
This commit is contained in:
@@ -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]})
|
||||
|
||||
Reference in New Issue
Block a user