• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • 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] How to make Special Fighting moves Super Effective on Ghosts, while making Physical moves x0 on them?

  • 413
    Posts
    5
    Years
    In my Types.PBS, Ghost is Immune to fighting.

    But as I've seen in the code for how Odor Sleuth and the held item Iron Ball work, this can be bypassed.

    So how do I make Physical Fighting moves deal x0 to Ghosts, and Special Fighting moves deal Super Effective damage to Ghosts?

    def pbCalcTypeMod(moveType,user,target)
    ret = Effectiveness::SUPER_EFFECTIVE_ONE if defType == :GHOST && specialMove? moveType == :FIGHTING
    end
    end
     
    Last edited:
    Back
    Top