mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Patch Fling
This patch makes Fling Workable (Tested on my Essentials 18 copy and worked fine)
This commit is contained in:
committed by
GitHub
parent
78ce7eed95
commit
969c753f50
@@ -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