forked from External/mage
Fix the other two effects which exchange life totals with power/toughness to check to make sure that the permanent is a creature.
This commit is contained in:
parent
dd67682c12
commit
f3d6855965
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ class EvraHalcyonWitnessEffect extends OneShotEffect {
|
||||||
Player player = game.getPlayer(source.getControllerId());
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
if (player != null && player.isLifeTotalCanChange()) {
|
if (player != null && player.isLifeTotalCanChange()) {
|
||||||
Permanent perm = game.getPermanent(source.getSourceId());
|
Permanent perm = game.getPermanent(source.getSourceId());
|
||||||
if (perm != null) {
|
if (perm != null && perm.isCreature()) {
|
||||||
int amount = perm.getPower().getValue();
|
int amount = perm.getPower().getValue();
|
||||||
int life = player.getLife();
|
int life = player.getLife();
|
||||||
if (life == amount) {
|
if (life == amount) {
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ class TreeOfRedemptionEffect extends OneShotEffect {
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player player = game.getPlayer(source.getControllerId());
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
Permanent perm = game.getPermanent(source.getSourceId());
|
Permanent perm = game.getPermanent(source.getSourceId());
|
||||||
if (perm == null || player == null || !player.isLifeTotalCanChange()) {
|
if (perm == null || player == null || !player.isLifeTotalCanChange() || !perm.isCreature()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue