mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed: some items not working in battle, typo in Shell Trap's AI, Vs animation not triggering, Battle Factory Pokémon being chosen incorrectly, Battle Factory double mode being single battles, some game data not being cleared when compiling
This commit is contained in:
@@ -411,7 +411,7 @@ class PokeBattle_Battler
|
||||
def hasActiveItem?(check_item, ignore_fainted = false)
|
||||
return false if !itemActive?(ignore_fainted)
|
||||
return check_item.include?(@item_id) if check_item.is_a?(Array)
|
||||
return check_item == self.item
|
||||
return self.item == check_item
|
||||
end
|
||||
alias hasWorkingItem hasActiveItem?
|
||||
|
||||
|
||||
@@ -3022,7 +3022,7 @@ class PokeBattle_AI
|
||||
elsif skill>=PBTrainerAI.highSkill && reserves==0 && foes==0
|
||||
score += 80 # want to draw
|
||||
else
|
||||
score -= (user.total.hp-user.hp)*75/user.totalhp
|
||||
score -= (user.totalhp-user.hp)*75/user.totalhp
|
||||
end
|
||||
#---------------------------------------------------------------------------
|
||||
when "171"
|
||||
|
||||
Reference in New Issue
Block a user