30 lines
648 B
Go
30 lines
648 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
"blazing/logic/service/fight/node"
|
|
)
|
|
|
|
// Effect 1379: 自身不处于能力提升状态时50%的概率打出致命一击
|
|
type Effect1379 struct{ node.EffectNode }
|
|
|
|
func (e *Effect1379) SkillHit() bool {
|
|
if e.Ctx().SkillEntity == nil || e.Ctx().SkillEntity.Category() == info.Category.STATUS {
|
|
return true
|
|
}
|
|
if e.Ctx().Our.HasPropADD() {
|
|
return true
|
|
}
|
|
|
|
ok, _, _ := e.Input.Player.Roll(50, 100)
|
|
if ok {
|
|
e.Ctx().SkillEntity.XML.CritRate = 16
|
|
}
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 1379, &Effect1379{})
|
|
}
|