mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 17:34:20 +01:00
Consider Nature Power in AI_CalcDamage (#2776)
This commit is contained in:
commit
abc0e20aaf
@ -744,6 +744,10 @@ s32 AI_CalcDamage(u16 move, u8 battlerAtk, u8 battlerDef, u8 *typeEffectiveness,
|
|||||||
SetBattlerData(battlerDef);
|
SetBattlerData(battlerDef);
|
||||||
|
|
||||||
gBattleStruct->dynamicMoveType = 0;
|
gBattleStruct->dynamicMoveType = 0;
|
||||||
|
|
||||||
|
if (move == MOVE_NATURE_POWER)
|
||||||
|
move = GetNaturePowerMove();
|
||||||
|
|
||||||
SetTypeBeforeUsingMove(move, battlerAtk);
|
SetTypeBeforeUsingMove(move, battlerAtk);
|
||||||
GET_MOVE_TYPE(move, moveType);
|
GET_MOVE_TYPE(move, moveType);
|
||||||
|
|
||||||
|
@ -4847,7 +4847,7 @@ const struct BattleMove gBattleMoves[MOVES_COUNT_Z] =
|
|||||||
[MOVE_NATURE_POWER] =
|
[MOVE_NATURE_POWER] =
|
||||||
{
|
{
|
||||||
.effect = EFFECT_NATURE_POWER,
|
.effect = EFFECT_NATURE_POWER,
|
||||||
.power = 0,
|
.power = 1,
|
||||||
.type = TYPE_NORMAL,
|
.type = TYPE_NORMAL,
|
||||||
.accuracy = 0,
|
.accuracy = 0,
|
||||||
.pp = 20,
|
.pp = 20,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user