class Scene_Battle
alias old_main main
def main
@drink_blood = 999
old_main
end
alias msar make_skill_action_result
def make_skill_action_result
msar
if $吸血技能id数组.include?(@skill.id)
temp_hp = 0
for target in @target_battlers
temp_hp += target.damage
end
@active_battler.damage = -temp_hp
@active_battler.hp += temp_hp
@target_battlers.push(@active_battler)
@drink_blood = @target_battlers.index(@active_battler)
end
end
alias ups4 update_phase4_step4
def update_phase4_step4
ups4
@target_battlers[@drink_blood].animation_id = 0 if @target_battlers[@drink_blood] != nil
@target_battlers[@drink_blood].animation_hit = false if @target_battlers[@drink_blood] != nil
end
end作者: 逸豫 时间: 2010-7-7 20:34
这不是咱那个脚本么……
temp_hp += target.damage改为
temp_hp += target.damage if target.damage.is_a?(Fixnum)作者: 759668102 时间: 2010-7-7 21:00