Advertisement
Azeria111

Unburden

Jun 29th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Bug Report: Unburden goes away after the first turn after its activation.
  2. Date: 7/31/2018
  3.  
  4. File name: PokeBattle_Battler
  5. Line Number(ish): 1307
  6. Line directly before:
  7.  
  8. speed=(speed*stagemul[stage]/stagediv[stage]).floor
  9.  
  10. Line directly after:
  11.  
  12. if self.pbOwnSide.effects[PBEffects::Tailwind]>0
  13.  
  14. Code to add:
  15.  
  16. if @unburdened
  17. speed=speed*2
  18. end
  19. ----------------------------------------------------------
  20. File name: PokeBattle_Battler
  21. Line Number(ish): 792
  22. Line directly before:
  23.  
  24. if isConst?(@ability, PBAbilities, :UNBURDEN) && !@unburdened
  25.  
  26. Line directly after:
  27.  
  28. @unburdened = true
  29.  
  30. Code to remove:
  31.  
  32. @speed *= 2
  33.  
  34. Comment: Apparently the problem was that unburden doubled the raw speed stat on activation instead of working like any other speed boosting ability in the game, for some reason, so pbUpdate (from PokeBattle_Battler) was reseting the stat after gaining ex and evs.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement