mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-08 08:27:52 +01:00
Merge pull request #209 from ExoryxHana/patch-1
Don't use Toxic if opponent has Toxic Boost.
This commit is contained in:
commit
a61f282668
@ -620,6 +620,7 @@ AI_CBM_Toxic: @ 82DC48C
|
||||
if_equal TYPE_POISON, Score_Minus10
|
||||
get_ability AI_TARGET
|
||||
if_equal ABILITY_IMMUNITY, Score_Minus10
|
||||
if_equal ABILITY_TOXIC_BOOST, Score_Minus10
|
||||
if_status AI_TARGET, STATUS1_ANY, Score_Minus10
|
||||
if_side_affecting AI_TARGET, SIDE_STATUS_SAFEGUARD, Score_Minus10
|
||||
end
|
||||
@ -818,6 +819,7 @@ AI_CBM_Torment: @ 82DC6A9
|
||||
AI_CBM_WillOWisp: @ 82DC6B4
|
||||
get_ability AI_TARGET
|
||||
if_equal ABILITY_WATER_VEIL, Score_Minus10
|
||||
if_equal ABILITY_FLARE_BOOST, Score_Minus10
|
||||
if_status AI_TARGET, STATUS1_ANY, Score_Minus10
|
||||
if_type_effectiveness AI_EFFECTIVENESS_x0, Score_Minus10
|
||||
if_type_effectiveness AI_EFFECTIVENESS_x0_5, Score_Minus10
|
||||
|
Loading…
x
Reference in New Issue
Block a user