-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds some gen9 moves #3147
Adds some gen9 moves #3147
Conversation
data/battle_scripts_1.s
Outdated
@@ -432,6 +432,22 @@ gBattleScriptsForMoveEffects:: | |||
.4byte BattleScript_EffectInfernalParade @ EFFECT_INFERNAL_PARADE | |||
.4byte BattleScript_EffectTakeHeart @ EFFECT_TAKE_HEART | |||
.4byte BattleScript_EffectAxeKick @ EFFECT_AXE_KICK | |||
.4byte BattleScript_EffectHit @ EFFECT_COLLISION_COURSE | |||
.4byte BattleScript_EffectSpinOut @ EFFECT_SPIN_OUT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
test/move_effect_make_it_rain.c
Outdated
ASSUME(gBattleMoves[MOVE_MAKE_IT_RAIN].effect == EFFECT_MAKE_IT_RAIN); | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Make It Rain lowers special attack by 1 stage1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test should also have comparisions of dmg, to see if the the damage dealt after the stat loss is lower than before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
data/battle_scripts_1.s
Outdated
waitmessage B_WAIT_TIME_LONG | ||
resultmessage | ||
waitmessage B_WAIT_TIME_LONG | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/battle_util.c
Outdated
@@ -9484,6 +9484,10 @@ static u32 CalcFinalDmg(u32 dmg, u16 move, u8 battlerAtk, u8 battlerDef, u8 move | |||
finalModifier = uq4_12_multiply(finalModifier, UQ_4_12(1.5)); | |||
} | |||
|
|||
// Collision Course, Electro Drift | |||
if (gBattleMoves[move].effect == EFFECT_COLLISION_COURSE && typeEffectivenessModifier >= UQ_4_12(2.0)) | |||
finalModifier = uq4_12_multiply(finalModifier, UQ_4_12(1.33)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Showdown says it actually boosts by 1.3333 instead of 1.33.
https://dex.pokemonshowdown.com/moves/collisioncourse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to 1.3333.
@AsparagusEduardo Should it go to upcoming or master actually? 🤔 |
They're new move effects, so into upcoming they go. |
Description
Adds:
EFFECT_COLLISION_COURSE
EFFECT_SPIN_OUT
EFFECT_MAKE_IT_RAIN
The
EFFECT_MAKE_IT_RAIN
script is basically a copy from Lunos but in doing so I also cleaned up some existing code, included the effect insIgnoredPowerfulMoveEffects
and added a Test for all three effects.Also changed a score value when checking for Contrary to avoid situation like this:
I think that +3 should be enough when Contrary is present.
And I removed
EFFECT_OVERHEAT
from HPAware. I don't think it is needed there since it is already present insIgnoredPowerfulMoveEffects
Issue(s) that this PR fixes
Fixes #2492
Fixes #2501
Fixes #2502
Fixes #2503
Discord contact info
rainonline