Hi,
I've had many issues with this script "PokeBattle_Clauses" (I'm on v18.1 but from what I'm seeing v19 and v18.1 almost have the same script).
I don't know why this happens though. I suspect this is a bug within Ruby itself.
While I'm reading the script PokeBattle_Clauses, I think I see a hint of solution:
Code:
unless @__clauses__aliased
alias __clauses__pbMoveFailed? pbMoveFailed?
@__clauses__aliased = true
end
My hint is: in the script PokeBattle_Clauses, whenever you see a single line:
Code:
alias __clauses__someFunctionName someFunctionName
replace it with:
Code:
unless @__clauses__aliased
alias __clauses__someFunctionName someFunctionName
@__clauses__aliased = true
end
Another hint I have; in the script PokeBattle_Clauses sometimes classes are defined:
Code:
class PokeBattle_Move_XXX
while this move is defined by:
Code:
class PokeBattle_Move_022 < PokeBattle_StatUpMove # Double Team
So for :
Code:
class PokeBattle_Move_067 # Skill Swap
replace this line with:
Code:
class PokeBattle_Move_067 < PokeBattleMove # Skill Swap
Your error says that the function
pbFailsAgainstTarget? is not found, while it is in the base kit of the base class of moves (
PokeBattle_Move).
Maybe this is because
PokeBattle_Move_067 is "rewritten" as not being a subclass of
PokeBattle_Move.
This fix probably needs some backup from someone who actually knows how Ruby works "inside" (interpreter level).
*My* bugfix was to simply comment the erroneous code. Clauses are likely deprecated in Essentials.