Vendily

Flash with killed darksprite

Feb 2nd, 2018
157
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HiddenMoveHandlers::CanUseMove.add(:FLASH,proc{|move,pkmn,showmsg|
  2. return false if !pbCheckHiddenMoveBadge(BADGEFORFLASH,showmsg)
  3. if !pbGetMetadata($game_map.map_id,MetadataDarkMap)
  4. Kernel.pbMessage(_INTL("Can't use that here.")) if showmsg
  5. return false
  6. end
  7. darkness = $PokemonTemp.darknessSprite
  8. if !darkness || darkness.disposed? # EDIT
  9. Kernel.pbMessage(_INTL("It's not dark anymore.")) if showmsg
  10. return false
  11. end
  12. if $PokemonGlobal.flashUsed
  13. Kernel.pbMessage(_INTL("Flash is already being used.")) if showmsg
  14. return false
  15. end
  16. return true
  17. })
RAW Paste Data