mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Merge pull request #1 from HM100/patch-1
Fix missing parameter in Fling's success check
This commit is contained in:
@@ -3546,7 +3546,7 @@ class PokeBattle_Move_0F7 < PokeBattle_Move
|
||||
}
|
||||
end
|
||||
|
||||
def pbCheckFlingSuccess
|
||||
def pbCheckFlingSuccess(user)
|
||||
@willFail = false
|
||||
@willFail = true if user.item==0 || !user.itemActive? || user.unlosableItem?(user.item)
|
||||
if pbIsBerry?(user.item)
|
||||
@@ -3576,7 +3576,7 @@ class PokeBattle_Move_0F7 < PokeBattle_Move
|
||||
|
||||
def pbDisplayUseMessage(user)
|
||||
super
|
||||
pbCheckFlingSuccess
|
||||
pbCheckFlingSuccess(user)
|
||||
if !@willFail
|
||||
@battle.pbDisplay(_INTL("{1} flung its {2}!",user.pbThis,user.itemName))
|
||||
end
|
||||
@@ -3743,4 +3743,4 @@ class PokeBattle_Move_0FF < PokeBattle_WeatherMove
|
||||
super
|
||||
@weatherType = PBWeather::Sun
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user