mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
AI now doesn't use Full Restores just to heal small amounts of HP
This commit is contained in:
@@ -115,9 +115,10 @@ class Battle::AI
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
# Log Full Restores (HP healer and status curer)
|
# Log Full Restores (HP healer and status curer)
|
||||||
if fullRestoreItems.include?(i) && (losthp > 0 || battler.status != :NONE)
|
if fullRestoreItems.include?(i)
|
||||||
usableHPItems.push([i, (preferFullRestore) ? 3 : 7, 999])
|
usableHPItems.push([i, (preferFullRestore) ? 3 : 7, 999]) if losthp > 0
|
||||||
usableStatusItems.push([i, (preferFullRestore) ? 3 : 9])
|
usableStatusItems.push([i, (preferFullRestore) ? 3 : 9]) if battler.status != :NONE ||
|
||||||
|
battler.effects[PBEffects::Confusion] > 0
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
# Log single status-curing items
|
# Log single status-curing items
|
||||||
|
|||||||
Reference in New Issue
Block a user