When a trainer with a Skill Level of 99 tries to Tera with pkmn that isn't their last one, I get this error after choosing my move. Then the turn plays out normally.
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.7]
Exception: NoMethodError
Message: undefined method `tera_type' for #<Battle:
:AIBattler>
Backtrace:
[[DBK] Terastallization] [009] Battle_AI.rb:222:in `block in get_party_tera_score'
AI_Utilities:19:in `block in each_foe_battler'
AI_Utilities:17:in `each'
AI_Utilities:17:in `each_with_index'
AI_Utilities:17:in `each_foe_battler'
[[DBK] Terastallization] [009] Battle_AI.rb:178:in `get_party_tera_score'
[[DBK] Terastallization] [009] Battle_AI.rb:88:in `block in wants_to_terastallize?'
[[DBK] Terastallization] [009] Battle_AI.rb:82:in `each'
[[DBK] Terastallization] [009] Battle_AI.rb:82:in `each_with_index'
[[DBK] Terastallization] [009] Battle_AI.rb:82:in `wants_to_terastallize?'
Also, when using the Master Tera Jewel, in the "select type" screen, I get this error when cancelling the selection:
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.7]
Exception: ArgumentError
Message: Invalid argument passed to method.
Expected nil to be one of [Symbol, GameData::Type, String], but got NilClass.
Backtrace:
Validation:29:in `validate'
GameData:100:in `get'
[[DBK] Terastallization] [003] Item Handlers.rb:237:in `block in <main>'
Event_Handlers:195:in `trigger'
[[MUI] Enhanced Pokemon UI] [002] Legacy Data.rb:11:in `triggerUseOnPokemon'
[[DBK] Terastallization] [003] Item Handlers.rb:197:in `pbBagUseItem'
[Bag Screen w/int. Party] Script.rb:1217:in `block in pbChoosePoke'
[Bag Screen w/int. Party] Script.rb:1185:in `loop'
[Bag Screen w/int. Party] Script.rb:1185:in `pbChoosePoke'
[Bag Screen w/int. Party] Script.rb:1462:in `block in pbStartScreen'