43 lines
779 B
Go
43 lines
779 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/action"
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
// Effect 540: 若后出手则下{0}回合攻击必定致命一击
|
|
type Effect540 struct {
|
|
RoundEffectArg0Base
|
|
can bool
|
|
}
|
|
|
|
func (e *Effect540) ActionStart(a, b *action.SelectSkillAction) bool {
|
|
if !e.can {
|
|
return true
|
|
}
|
|
//fmt.Println(e.Ctx().SkillEntity)
|
|
if e.Ctx().SkillEntity == nil {
|
|
return true
|
|
}
|
|
if e.Ctx().SkillEntity.Category() == info.Category.STATUS {
|
|
return true
|
|
}
|
|
e.Ctx().SkillEntity.XML.CritRate = 16
|
|
|
|
return true
|
|
}
|
|
func (e *Effect540) OnSkill() bool {
|
|
|
|
// 检查是否后出手
|
|
if !e.IsFirst() {
|
|
|
|
e.can = true
|
|
}
|
|
|
|
return true
|
|
}
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 540, &Effect540{})
|
|
}
|