pokerogue
pokerogue copied to clipboard
Implements healer
Modifies PostTurnResetStatusAbAttr to take an optional allyTarget flag, which will instead try to reset that status of the ally on the field to account for the Healer ability.
This ability is essentially just Shed Skin for your ally. Only difference being that this is 30% chance instead of 33% chance (not sure why).
Note; This could be cleaner by just having an optional target passed into the attr, as that would allow us to just default to the user or override if specified, but I couldn't access the pokemon.getAlly() within the conditional attr parameters.
According to this the ability should only heal status effects on allies, not on self. Tested it out on showdown for as many turns as I could stand and never triggered the ability on self, only on allies.
If this isn't the case let me know.
@bennybroseph that's correct, that should be how it's coded to work.
Tested for as many turns as I could. Heals allies status conditions and not self.
https://github.com/pagefaultgames/pokerogue/assets/13838608/3a501c4e-e020-48e5-8365-98370306d8c6
Ran into an issue though. It cures the fainted status as well. Set the chance to cure to 100% and then knocked my own pokemon out.
https://github.com/pagefaultgames/pokerogue/assets/13838608/9bc41b0d-d24c-4e73-b498-5b1f922b51ef
Looks good to me now.