mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed being unable to extract plugin messages to translate them, fixed AI bug with Natural Gift and no item, fixed bad code when checking a trainer's party for a mon with a given type
This commit is contained in:
@@ -489,10 +489,12 @@ class PokeBattle_Move_096 < PokeBattle_Move
|
||||
def pbBaseType(user)
|
||||
item = user.item
|
||||
ret = :NORMAL
|
||||
@typeArray.each do |type, items|
|
||||
next if !items.include?(item.id)
|
||||
ret = type if GameData::Type.exists?(type)
|
||||
break
|
||||
if item
|
||||
@typeArray.each do |type, items|
|
||||
next if !items.include?(item.id)
|
||||
ret = type if GameData::Type.exists?(type)
|
||||
break
|
||||
end
|
||||
end
|
||||
return ret
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user