This commit is contained in:
@@ -6,8 +6,7 @@ public class StompingTantrum : Script, IScriptChangeBasePower
|
||||
/// <inheritdoc />
|
||||
public void ChangeBasePower(IExecutingMove move, IPokemon target, byte hit, ref ushort basePower)
|
||||
{
|
||||
var lastMoveChoice = move.Battle.PreviousTurnChoices.Reverse().Skip(1).SelectMany(x => x.Reverse())
|
||||
.OfType<IMoveChoice>().FirstOrDefault(x => x.User == move.User);
|
||||
var lastMoveChoice = move.User.BattleData?.LastMoveChoice;
|
||||
if (lastMoveChoice is { HasFailed: true })
|
||||
{
|
||||
basePower = basePower.MultiplyOrMax(2);
|
||||
|
||||
Reference in New Issue
Block a user