Adrenaline Orb. I made some editions (like won't trigger Symbiosis).
In 'PokeBattle_Battler' script, replace Intimidate's code for:
Then, 'def pbReduceAttackStatIntimidate(opponent)', replace or compare to add ADRENALINEORB:
P.S: Let's wait for v18 to check if Maruno will add the code for S.O.S Battle. :D
Cya!
EDIT Oct 16: Just replace the first part (INTIMIDATE's code):
In 'PokeBattle_Battler' script, replace Intimidate's code for:
Spoiler:
Code:
# Intimidate
if self.hasWorkingAbility(:INTIMIDATE) && onactive
PBDebug.log("[Ability triggered] #{pbThis}'s Intimidate")
for i in 0...4; battler = @battle.battlers[i]
if pbIsOpposing?(i) && !battler.fainted?
battler.pbReduceAttackStatIntimidate(self)
if battler.hasWorkingItem(:ADRENALINEORB)
if battler.pbIncreaseStatWithCause(PBStats::SPEED,1,battler,PBItems.getName(battler.item))
battler.pokemon.itemInitial=0 if battler.pokemon.itemInitial==battler.item
battler.item=0
end
end
end
end
end
Then, 'def pbReduceAttackStatIntimidate(opponent)', replace or compare to add ADRENALINEORB:
Spoiler:
Code:
def pbReduceAttackStatIntimidate(opponent)
return false if fainted?
if effects[PBEffects::Substitute]>0
@battle.pbDisplay(_INTL("{1}'s substitute protected it from {2}'s {3}!",
pbThis,opponent.pbThis(true),PBAbilities.getName(opponent.ability)))
return false
end
if !opponent.hasWorkingAbility(:CONTRARY)
if pbOwnSide.effects[PBEffects::Mist]>0
@battle.pbDisplay(_INTL("{1} is protected from {2}'s {3} by Mist!",
pbThis,opponent.pbThis(true),PBAbilities.getName(opponent.ability)))
if hasWorkingItem(:ADRENALINEORB)
if pbIncreaseStatWithCause(PBStats::SPEED,1,self,PBItems.getName(self.item))
self.pokemon.itemInitial=0 if self.pokemon.itemInitial==self.item
self.item=0
end
end
return false
end
if hasWorkingAbility(:CLEARBODY) || hasWorkingAbility(:WHITESMOKE) ||
hasWorkingAbility(:HYPERCUTTER) ||
(hasWorkingAbility(:FLOWERVEIL) && pbHasType?(:GRASS))
abilityname=PBAbilities.getName(self.ability)
oppabilityname=PBAbilities.getName(opponent.ability)
@battle.pbDisplay(_INTL("{1}'s {2} prevented {3}'s {4} from working!",
pbThis,abilityname,opponent.pbThis(true),oppabilityname))
if hasWorkingItem(:ADRENALINEORB)
if pbIncreaseStatWithCause(PBStats::SPEED,1,self,PBItems.getName(self.item))
self.pokemon.itemInitial=0 if self.pokemon.itemInitial==self.item
self.item=0
end
end
return false
end
if pbPartner.hasWorkingAbility(:FLOWERVEIL) && pbHasType?(:GRASS)
abilityname=PBAbilities.getName(pbPartner.ability)
oppabilityname=PBAbilities.getName(opponent.ability)
@battle.pbDisplay(_INTL("{1}'s {2} prevented {3}'s {4} from working!",
pbPartner.pbThis,abilityname,opponent.pbThis(true),oppabilityname))
if hasWorkingItem(:ADRENALINEORB)
if pbIncreaseStatWithCause(PBStats::SPEED,1,self,PBItems.getName(self.item))
self.pokemon.itemInitial=0 if self.pokemon.itemInitial==self.item
self.item=0
end
end
return false
end
end
return pbReduceStatWithCause(PBStats::ATTACK,1,opponent,PBAbilities.getName(opponent.ability))
end
P.S: Let's wait for v18 to check if Maruno will add the code for S.O.S Battle. :D
Cya!
EDIT Oct 16: Just replace the first part (INTIMIDATE's code):
Spoiler:
Code:
# Intimidate
if self.hasWorkingAbility(:INTIMIDATE) && onactive
PBDebug.log("[Ability triggered] #{pbThis}'s Intimidate")
for i in 0...4; battler = @battle.battlers[i]
if pbIsOpposing?(i) && !battler.fainted?
if battler.pbReduceAttackStatIntimidate(self)
if battler.hasWorkingItem(:ADRENALINEORB) && !battler.pbTooHigh?(PBStats::SPEED)
PBDebug.log("[Item triggered] #{pbThis}'s Adrenaline Orb (raising Speed)")
@battle.pbCommonAnimation("UseItem",battler,nil)
battler.pbIncreaseStatWithCause(PBStats::SPEED,1,battler,PBItems.getName(battler.item))
battler.pbConsumeItem(false,true)
end
end
end
end
end
Last edited: