36 lines
608 B
Go
36 lines
608 B
Go
package effect
|
|
|
|
import (
|
|
"blazing/logic/service/fight/info"
|
|
"blazing/logic/service/fight/input"
|
|
)
|
|
|
|
/**
|
|
* n回合内,每回合附加m点固定伤害
|
|
*/
|
|
|
|
func init() {
|
|
|
|
input.InitEffect(input.EffectType.Skill, 60, &Effect60{})
|
|
|
|
}
|
|
|
|
// Effect 60: {0}回合内每回合都能附加{1}点固定伤害
|
|
type Effect60 struct {
|
|
RoundEffectSideArg0Base
|
|
}
|
|
|
|
func (e *Effect60) OnSkill() bool {
|
|
|
|
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]})
|
|
return true
|
|
}
|