mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Merge pull request #70 from Mark-McKen/Perfect-Ball-Fix
Fixed perfect ball
This commit is contained in:
@@ -60,11 +60,11 @@ BallHandlers::ModifyCatchRate.add(:PERFECTBALL,proc{|ball,catchRate,battle,pokem
|
||||
next catchRate
|
||||
})
|
||||
BallHandlers::OnCatch.add(:PERFECTBALL,proc{|ball,battle,pokemon|
|
||||
stat1 = rand(5)
|
||||
stat2 = rand(5)
|
||||
pokemon.iv[stat1]=31
|
||||
pokemon.iv[stat2]=31
|
||||
|
||||
stats = [:ATTACK, :SPECIAL_ATTACK, :SPECIAL_DEFENSE, :SPEED, :DEFENSE, :HP]
|
||||
first = rand(5)
|
||||
second = rand(5)
|
||||
pokemon.iv[stats[first]] = 31
|
||||
pokemon.iv[stats[second]] = 31
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user