As we're re-using the same struggle object, ensure PP is always restored before use.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3174986796
commit
c6a4c87d47
|
@ -38,6 +38,7 @@ static CreatureLib::Battling::LearnedAttack* GetReplacementAttack() {
|
||||||
replacementAttack = new PkmnLib::Battling::LearnedMove(GetReplacementAttackData(),
|
replacementAttack = new PkmnLib::Battling::LearnedMove(GetReplacementAttackData(),
|
||||||
CreatureLib::Battling::AttackLearnMethod::Unknown);
|
CreatureLib::Battling::AttackLearnMethod::Unknown);
|
||||||
}
|
}
|
||||||
|
replacementAttack->RestoreAllUses();
|
||||||
return replacementAttack;
|
return replacementAttack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue