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
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