Scraps The Man
Crystal Collector
- 33
- Posts
- 4
- Years
- Seen Jun 19, 2024
I am not quite sure what I did wrong exactly, but I will at least explain that this (seemingly) started happening after I added a new class for my moves. (one that changes typing based off of the user's type)
How it happens:
1. A pokemon will use an attack
2. The error message below will appear
3. The attack will be negated and will have never happened
Error Message:
[Pokémon Essentials version 17.2]
Exception: TypeError
Message: nil can't be coerced into Fixnum
PokeBattle_Move:1132:in `*'
PokeBattle_Move:1132:in `pbCalcDamage'
PokeBattle_Move:1365:in `pbEffect'
PokeBattle_Battler:2797:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2753:in `each'
PokeBattle_Battler:2753:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:3229:in `pbUseMove'
PokeBattle_Battler:3209:in `loop'
PokeBattle_Battler:3232:in `pbUseMove'
PokeBattle_Battler:3430:in `pbProcessTurn'
If you know any way to fix this please give me some pointers!
How it happens:
1. A pokemon will use an attack
2. The error message below will appear
3. The attack will be negated and will have never happened
Error Message:
[Pokémon Essentials version 17.2]
Exception: TypeError
Message: nil can't be coerced into Fixnum
PokeBattle_Move:1132:in `*'
PokeBattle_Move:1132:in `pbCalcDamage'
PokeBattle_Move:1365:in `pbEffect'
PokeBattle_Battler:2797:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2753:in `each'
PokeBattle_Battler:2753:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:3229:in `pbUseMove'
PokeBattle_Battler:3209:in `loop'
PokeBattle_Battler:3232:in `pbUseMove'
PokeBattle_Battler:3430:in `pbProcessTurn'
If you know any way to fix this please give me some pointers!