Patch Fling

This patch makes Fling Workable (Tested on my Essentials 18 copy and worked fine)
This commit is contained in:
HM The Mister Techno
2020-09-05 02:21:38 +03:00
committed by GitHub
parent 78ce7eed95
commit 969c753f50

View File

@@ -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