- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
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
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: