VitorBM

Male
Brazil
Seen 12 Hours Ago
Posted 3 Days Ago
14 posts
256 Days
Room Service causes your speed to slow down when Trick Room is enabled

is an item shown in this trailer for pokemon Sword and Shield
https://www.youtube.com/watch?v=uaF9iJ9bzUM
this is the error
Screenshot_3.jpg

this is the Script I put under Sticky Barb in the PokeBattle_Battle Script on the end of round.
# ROOMSERVICE
if i.hasWorkingItem(:ROOMSERVICE) && @field.effects[PBEffects::TrickRoom]>0
if self.pbCanReduceStatsStage?(PBStats::SPEED,self,false,self)
self.pbReduceStat(PBStats::SPEED,1,self,false,self,showanim)
showanim=false
end
showanim=true
pbDisplay(_INTL("Your Speed lowers"))
PBDebug.log("[Item triggered] #{i.pbThis}'s Room Service")
end


##################################################
Sorry for the bad english i used google translate.