Fixed Amulet of Vigor. Fixed Purestell Paladin. Fixed Issue 370.

This commit is contained in:
magenoxx 2011-11-06 13:52:43 +03:00
parent 0fc4cc4e28
commit dc1725ce63
2 changed files with 3 additions and 2 deletions

View file

@ -109,7 +109,8 @@ class PuresteelPaladinTriggeredAbility extends TriggeredAbilityImpl<PuresteelPal
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if (zEvent.getToZone() == Constants.Zone.BATTLEFIELD) {
Permanent permanent = game.getPermanent(event.getTargetId());
if (permanent != null && permanent.getSubtype().contains("Equipment")) {
if (permanent != null && permanent.getSubtype().contains("Equipment")
&& permanent.getControllerId().equals(this.controllerId)) {
return true;
}
}

View file

@ -84,7 +84,7 @@ class AmuletOfVigorTriggeredAbility extends TriggeredAbilityImpl<AmuletOfVigorTr
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if (zEvent.getToZone() == Constants.Zone.BATTLEFIELD) {
Permanent p = game.getPermanent(event.getTargetId());
if (p != null && p.isTapped()) {
if (p != null && p.isTapped() && p.getControllerId().equals(this.controllerId)) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(event.getTargetId()));
}