diff --git a/logic/service/fight/effect/effect_status.go b/logic/service/fight/effect/effect_status.go index 347a9bcd..fcb120f2 100644 --- a/logic/service/fight/effect/effect_status.go +++ b/logic/service/fight/effect/effect_status.go @@ -12,12 +12,16 @@ type EffectStatus struct { status info.EnumBattleStatus } +func (e *EffectStatus) UseSkill(opp *input.Input) bool { + return false + +} func init() { //麻痹,疲惫,害怕,石化,都是无法行动 tt := func(t info.EnumBattleStatus, f *EffectStatus) { - f.status=t + f.status = t input.InitStatusEffect(int(t), f) } tt(info.BattleStatus.Paralysis, &EffectStatus{}) diff --git a/logic/service/player/ai.go b/logic/service/player/ai.go index 62a06b50..c6646f8b 100644 --- a/logic/service/player/ai.go +++ b/logic/service/player/ai.go @@ -21,8 +21,7 @@ func (f *AI_player) SendPack(b []byte) error { func (f *AI_player) SendReadyToFightInfo(gg info.FightStartOutboundInfo) { fmt.Println(gg) - // f.FightC.UseSkill(f, f.fightinfo.OpponentPetList[0].SkillList[0].ID) //使用1#技能,实际上要按照四个技能权重去使用 - //这时候给个出招 + } func (f *AI_player) SendNoteReadyToFightInfo(fs info.NoteReadyToFightInfo) { @@ -30,7 +29,7 @@ func (f *AI_player) SendNoteReadyToFightInfo(fs info.NoteReadyToFightInfo) { } func (f *AI_player) SendFightEndInfo(_ info.FightOverInfo) { - f.FightC = nil + //fmt.Println("战斗结束") }