I got in the fight with Venam and her last pokemon, Seviper, She used her z-move (acid downpour) messages and all , the damage was done and then this message happened.
Message: undefined method `hasFlags?' for #<PokeBattle_ZMoves:0x17126960>
PokeBattle_Battler:4395:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:4282:in `each'
PokeBattle_Battler:4282:in `pbProcessMoveAgainstTarget'
PokeBattle_ZMoves:95:in `initialize'
PokeBattle_Battle:3025:in `new'
PokeBattle_Battle:3025:in `pbUseZMove'
PokeBattle_Battler:5899:in `pbProcessTurn'
PokeBattle_Battle:4461:in `pbAttackPhase'
PokeBattle_Battle:4460:in `each'
PokeBattle_Battle:4460:in `pbAttackPhase'
My move was skipped and then next turn she acid downpour again, fainting my dustox and not getting the message this time.