mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-09 23:03:01 +01:00
Config to restore Gen 3's damage reduction to multi target moves
This commit is contained in:
parent
d120f2f183
commit
95f39c8c81
@ -30,6 +30,7 @@
|
|||||||
#define B_SPORT_DMG_REDUCTION GEN_LATEST // In Gen5+, Water/Mud Sport reduce Fire/Electric Damage by 67% instead of 50%.
|
#define B_SPORT_DMG_REDUCTION GEN_LATEST // In Gen5+, Water/Mud Sport reduce Fire/Electric Damage by 67% instead of 50%.
|
||||||
#define B_EXPLOSION_DEFENSE GEN_LATEST // In Gen5+, Self-Destruct and Explosion don't halve the targets' defense.
|
#define B_EXPLOSION_DEFENSE GEN_LATEST // In Gen5+, Self-Destruct and Explosion don't halve the targets' defense.
|
||||||
#define B_PARENTAL_BOND_DMG GEN_LATEST // In Gen7+, Parental Bond's second hit does 25% of the initial hits damage. Before, it did 50%.
|
#define B_PARENTAL_BOND_DMG GEN_LATEST // In Gen7+, Parental Bond's second hit does 25% of the initial hits damage. Before, it did 50%.
|
||||||
|
#define B_MULTIPLE_TARGETS_DMG GEN_LATEST // In Gen4+, damage dealt by moves that hit multiple targets at once is reduced to 75%. Before, it was 50%.
|
||||||
|
|
||||||
// Type settings
|
// Type settings
|
||||||
#define B_GHOSTS_ESCAPE GEN_LATEST // In Gen6+, abilities like Shadow Tag or moves like Mean Look fail on Ghost-type Pokémon. They can also escape any Wild Battle.
|
#define B_GHOSTS_ESCAPE GEN_LATEST // In Gen6+, abilities like Shadow Tag or moves like Mean Look fail on Ghost-type Pokémon. They can also escape any Wild Battle.
|
||||||
|
@ -9198,7 +9198,11 @@ static u32 CalcFinalDmg(u32 dmg, u16 move, u8 battlerAtk, u8 battlerDef, u8 move
|
|||||||
|
|
||||||
// check multiple targets in double battle
|
// check multiple targets in double battle
|
||||||
if (GetMoveTargetCount(move, battlerAtk, battlerDef) >= 2)
|
if (GetMoveTargetCount(move, battlerAtk, battlerDef) >= 2)
|
||||||
|
#if B_MULTIPLE_TARGETS_DMG >= GEN_4
|
||||||
MulModifier(&finalModifier, UQ_4_12(0.75));
|
MulModifier(&finalModifier, UQ_4_12(0.75));
|
||||||
|
#else
|
||||||
|
MulModifier(&finalModifier, UQ_4_12(0.5));
|
||||||
|
#endif
|
||||||
|
|
||||||
// take type effectiveness
|
// take type effectiveness
|
||||||
MulModifier(&finalModifier, typeEffectivenessModifier);
|
MulModifier(&finalModifier, typeEffectivenessModifier);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user