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.
break if user.isFainted?
break if target.isFainted?
This part is missing under the stench part.
Edit. Nvm found it but for some reason the pokemon that comes in gets to attack.
I'm not sure how to code "when hp drops from above 50% to below 50%". It activates whenever they take damage below 50% which isn't how it works,
I currently have:
if target.hasWorkingAbility(:EMERGENCYEXIT) && target.hp<=(target.totalhp/2).floor && !target.damagestate.substitute...
I'm trying to changed Cursed Body into an ability that gives you dark type stab, weaknesses and resistances.
I'm trying to use the concept and codes of Dark Aura, Thick Fat and levitate but I'm not sure how.
I know in PokeBattle_Battler the Type effectiveness chart reads this:
if numhits>1
if target.damagestate.typemod>4
@battle.pbDisplay(_INTL("It's super effective!"))
elsif target.damagestate.typemod>=1 && target.damagestate.typemod<4
@battle.pbDisplay(_INTL("It's...