• 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] Change the healing method of the Grassy Terrain

8
Posts
4
Years
    • Seen Oct 7, 2022
    Hello, Is it possible that the grassy terrain only heals the user of the "Grassy Surge" ability ?

    I think the code that needs to be modified is this one : (In the script "Battle_Phase_EndOfRound") :

    # Grassy Terrain (healing)
    if @field.terrain==PBBattleTerrains::Grassy && b.affectedByTerrain? && b.canHeal?
    PBDebug.log("[Lingering effect] Grassy Terrain heals #{b.pbThis(true)}")
    b.pbRecoverHP(b.totalhp/16)
    pbDisplay(_INTL("{1}'s HP was restored.",b.pbThis))
    end
    It would be cool if someone could help me 😅
    I'm using version 18.1 (Sorry for my bad english is not my native language)
     
    Back
    Top