47 lines
799 B
Go
47 lines
799 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/action"
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
/**
|
|
* 下n回合自身攻击技能必定打出致命一击
|
|
*/
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 58, &Effect58{})
|
|
|
|
}
|
|
|
|
// Effect 58: 下{0}回合自身攻击技能必定打出致命一击
|
|
type Effect58 struct {
|
|
RoundEffectSideArg0Base
|
|
Can bool
|
|
}
|
|
|
|
func (e *Effect58) OnSkill() bool {
|
|
|
|
e.Can = true
|
|
|
|
return true
|
|
}
|
|
|
|
func (e *Effect58) 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
|
|
}
|