mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 20:24:18 +01:00
Note bug in Foresight AI
This commit is contained in:
parent
4e845b6395
commit
1a40202ea4
@ -2057,12 +2057,22 @@ AI_CV_Protect_ScoreDown2:
|
|||||||
AI_CV_Protect_End:
|
AI_CV_Protect_End:
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ BUG: Foresight is only encouraged if the user is Ghost type or
|
||||||
|
@ has high evasion, but should check target instead
|
||||||
AI_CV_Foresight:
|
AI_CV_Foresight:
|
||||||
|
.ifdef BUGFIX
|
||||||
|
get_target_type1
|
||||||
|
if_equal TYPE_GHOST, AI_CV_Foresight2
|
||||||
|
get_target_type2
|
||||||
|
if_equal TYPE_GHOST, AI_CV_Foresight2
|
||||||
|
if_stat_level_more_than AI_TARGET, STAT_EVASION, 8, AI_CV_Foresight3
|
||||||
|
.else
|
||||||
get_user_type1
|
get_user_type1
|
||||||
if_equal TYPE_GHOST, AI_CV_Foresight2
|
if_equal TYPE_GHOST, AI_CV_Foresight2
|
||||||
get_user_type2
|
get_user_type2
|
||||||
if_equal TYPE_GHOST, AI_CV_Foresight2
|
if_equal TYPE_GHOST, AI_CV_Foresight2
|
||||||
if_stat_level_more_than AI_USER, STAT_EVASION, 8, AI_CV_Foresight3
|
if_stat_level_more_than AI_USER, STAT_EVASION, 8, AI_CV_Foresight3
|
||||||
|
.endif
|
||||||
score -2
|
score -2
|
||||||
goto AI_CV_Foresight_End
|
goto AI_CV_Foresight_End
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user