This commit is contained in:
@@ -6,8 +6,7 @@ public class Torment : Script, IScriptOnSecondaryEffect
|
||||
/// <inheritdoc />
|
||||
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var lastTargetChoice = move.Battle.PreviousTurnChoices.SelectMany(x => x).Reverse().OfType<IMoveChoice>()
|
||||
.FirstOrDefault(x => x.User == target);
|
||||
var lastTargetChoice = target.BattleData?.LastMoveChoice;
|
||||
target.Volatile.Add(new Pokemon.TormentEffect(lastTargetChoice));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user