Merge pull request #5256 from kevinwshin/FixVarchildBetrayerofKjeldor5245

Fixes Varchild, Betrayer of Kjeldor
This commit is contained in:
LevelX2 2018-08-22 16:29:15 +02:00 committed by GitHub
commit 30d4da9e76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
import mage.abilities.common.LeavesBattlefieldTriggeredAbility; import mage.abilities.common.LeavesBattlefieldTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.CreateTokenTargetEffect; import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.combat.CantAttackYouOrPlaneswalkerAllEffect; import mage.abilities.effects.common.combat.CantAttackYouOrPlaneswalkerAllEffect;
import mage.abilities.effects.common.combat.CantBlockAllEffect; import mage.abilities.effects.common.combat.CantBlockAllEffect;
import mage.abilities.effects.common.continuous.GainControlAllEffect; import mage.abilities.effects.common.continuous.GainControlAllEffect;
@ -108,7 +108,7 @@ class VarchildBetrayerOfKjeldorEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
int damage = (int) this.getValue("damage"); int damage = (int) this.getValue("damage");
if (damage > 0) { if (damage > 0) {
return new CreateTokenTargetEffect( return new CreateTokenEffect(
new SurvivorToken(), damage new SurvivorToken(), damage
).apply(game, source); ).apply(game, source);
} }