From 81578ac42c57292fbf65bf6c5e5760ed5f69fdc9 Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sat, 26 Mar 2022 15:12:32 +0000 Subject: [PATCH] AI now doesn't use Full Restores just to heal small amounts of HP --- Data/Scripts/011_Battle/005_AI/002_AI_Item.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Data/Scripts/011_Battle/005_AI/002_AI_Item.rb b/Data/Scripts/011_Battle/005_AI/002_AI_Item.rb index 32c79e246..2a1f469aa 100644 --- a/Data/Scripts/011_Battle/005_AI/002_AI_Item.rb +++ b/Data/Scripts/011_Battle/005_AI/002_AI_Item.rb @@ -115,9 +115,10 @@ class Battle::AI end end # Log Full Restores (HP healer and status curer) - if fullRestoreItems.include?(i) && (losthp > 0 || battler.status != :NONE) - usableHPItems.push([i, (preferFullRestore) ? 3 : 7, 999]) - usableStatusItems.push([i, (preferFullRestore) ? 3 : 9]) + if fullRestoreItems.include?(i) + usableHPItems.push([i, (preferFullRestore) ? 3 : 7, 999]) if losthp > 0 + usableStatusItems.push([i, (preferFullRestore) ? 3 : 9]) if battler.status != :NONE || + battler.effects[PBEffects::Confusion] > 0 next end # Log single status-curing items