mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
AI and other Gen 8 Effects (#123)
* Added Rattled being triggered by Intimidate in Gen 8 * Added Rapid Spin speed boost effect * Added basic AI for Gen 8 * Tweaked Leppa berry's effect * Added Ability Patch's exemption for Zygarde * Added Curse's Gen 8 targeting change * Added Teleport's Gen 8 effect * Added check for Choice items in Instruct and Dancer * Added Quash's Gen 8 change to the order that multiple Quashed Pokémon move in Co-authored-by: Maruno17 <serialcolour@hotmail.com>
This commit is contained in:
@@ -2285,7 +2285,8 @@ BattleHandlers::AbilityOnSwitchIn.add(:INTIMIDATE,
|
||||
else
|
||||
check_item = false if b.statStageAtMin?(:ATTACK)
|
||||
end
|
||||
b.pbLowerAttackStatStageIntimidate(battler)
|
||||
check_ability = b.pbLowerAttackStatStageIntimidate(battler)
|
||||
b.pbAbilitiesOnIntimidated if check_ability
|
||||
b.pbItemOnIntimidatedCheck if check_item
|
||||
end
|
||||
battle.pbHideAbilitySplash(battler)
|
||||
@@ -2474,6 +2475,17 @@ BattleHandlers::AbilityOnBattlerFainting.add(:SOULHEART,
|
||||
}
|
||||
)
|
||||
|
||||
#===============================================================================
|
||||
# AbilityOnIntimidated handlers
|
||||
#===============================================================================
|
||||
|
||||
BattleHandlers::AbilityOnIntimidated.add(:RATTLED,
|
||||
proc { |ability,battler,battle|
|
||||
next if Settings::MECHANICS_GENERATION < 8
|
||||
battler.pbRaiseStatStageByAbility(:SPEED, 1, battler)
|
||||
}
|
||||
)
|
||||
|
||||
#===============================================================================
|
||||
# RunFromBattleAbility handlers
|
||||
#===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user