38 lines
673 B
Go
38 lines
673 B
Go
|
|
package effect
|
||
|
|
|
||
|
|
import (
|
||
|
|
"blazing/logic/service/fight/action"
|
||
|
|
"blazing/logic/service/fight/input"
|
||
|
|
"blazing/logic/service/fight/node"
|
||
|
|
)
|
||
|
|
|
||
|
|
// 457 - 复制对手释放的技能(组队对战时无效)
|
||
|
|
type Effect457 struct {
|
||
|
|
node.EffectNode
|
||
|
|
}
|
||
|
|
|
||
|
|
func (e *Effect457) ComparePre(fattack *action.SelectSkillAction, sattack *action.SelectSkillAction) bool {
|
||
|
|
|
||
|
|
if fattack == nil {
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
//先手是自己
|
||
|
|
if fattack.PlayerID == e.Ctx().Our.UserID {
|
||
|
|
if sattack != nil {
|
||
|
|
fattack.Accuracy = sattack.SkillEntity.Accuracy
|
||
|
|
|
||
|
|
} else {
|
||
|
|
fattack = nil
|
||
|
|
}
|
||
|
|
|
||
|
|
} else {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
func init() {
|
||
|
|
input.InitEffect(input.EffectType.Skill, 457, &Effect457{})
|
||
|
|
|
||
|
|
}
|