From 8e2b397f1dfeda591441aaa00a24e88f648faeca Mon Sep 17 00:00:00 2001 From: Zzooouhh Date: Fri, 22 Dec 2017 22:49:12 +0100 Subject: [PATCH] Overflow check --- Mage.Sets/src/mage/cards/s/Sentinel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/s/Sentinel.java b/Mage.Sets/src/mage/cards/s/Sentinel.java index 1c67461fe4..d5d2518b1f 100644 --- a/Mage.Sets/src/mage/cards/s/Sentinel.java +++ b/Mage.Sets/src/mage/cards/s/Sentinel.java @@ -105,7 +105,7 @@ class SentinelEffect extends OneShotEffect { Player controller = game.getPlayer(source.getControllerId()); Permanent targetPermanent = game.getPermanentOrLKIBattlefield(targetPointer.getFirst(game, source)); if (controller != null && targetPermanent != null) { - int newToughness = targetPermanent.getPower().getValue() + 1; + int newToughness = game.addWithOverflowCheck(targetPermanent.getPower().getValue(), 1); game.addEffect(new SetToughnessSourceEffect(new StaticValue(newToughness), Duration.Custom, SubLayer.SetPT_7b), source); return true; }