查看: 2450|回复: 0

[已经过期] 反击时显示的信息问题

[复制链接]
梦石
0
星屑
9292
在线时间
2504 小时
注册时间
2011-5-20
回帖
14521

开拓者

发表于 2017-11-29 14:09:42 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
[pre lang="ruby"]class Scene_Battle
  #--------------------------------------------------------------------------
  # ● 发动技能/物品
  #--------------------------------------------------------------------------
  def invoke_item(target, item)
    if rand < target.item_cnt(@subject, item)
      apply_item_effects(apply_substitute(target, item), item)#反击不闪避攻击
      invoke_counter_attack(target, item)
    elsif rand < target.item_mrf(@subject, item)
      invoke_magic_reflection(target, item)
    else
      apply_item_effects(apply_substitute(target, item), item)
    end
    @subject.last_target_index = target.index
end
  end[/pre]

直接在反击判断加入应用物品/技能时反击不会闪避物品/技能,但是战斗时的信息显示出了一点问题
在WIndow_Battlelog里p@lines只会获得应用物品/技能的人
于是出现这样的情况

攻击时
A发动攻击
B受到伤害
反击时
A发动攻击
B发动反击→A受到伤害

需要在哪里再做调整使信息能正确显示?
[img]http://service.t.sina.com.cn/widget/qmd/5339802982/c02e16bd/7.png
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部