• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Ability scripting

benicioneto

Google Destruct
  • 4
    Posts
    12
    Years
    • Seen Jul 12, 2022
    Hi, I'm trying to give some pokemons two or more abilities with these code, but it keep getting error.

    def hasWorkingAbility(ability,ignorefainted=false)
    return false if self.isFainted? if !ignorefainted
    return false if @effects[PBEffects::GastroAcid]
    return true if isConst?(@ability,PBAbilities,ability)
    return true if ability==SANDSTREAM && isConst?(self.species,PBSpecies,:TYRANITAR)
    end
     
    Back
    Top