36 lines
706 B
Go
36 lines
706 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
// Effect 584: {0}回合内自己的所有攻击技能都附有{1}%的秒杀概率
|
|
type Effect584 struct {
|
|
RoundEffectArg0Base
|
|
}
|
|
|
|
func (e *Effect584) DamageFloor(t *info.DamageZone) bool {
|
|
if e.Ctx().SkillEntity == nil {
|
|
return true
|
|
}
|
|
if e.Ctx().SkillEntity.Category() == info.Category.STATUS {
|
|
return true
|
|
}
|
|
if t.Type != info.DamageType.Red {
|
|
return true
|
|
}
|
|
|
|
ok, _, _ := e.Input.Player.Roll(int(e.Args()[1].IntPart()), 100)
|
|
if !ok {
|
|
return true
|
|
}
|
|
|
|
t.Damage = e.Ctx().Opp.CurrentPet.GetMaxHP()
|
|
return true
|
|
}
|
|
|
|
func init() {
|
|
input.InitEffect(input.EffectType.Skill, 584, &Effect584{})
|
|
}
|