replace == with isController

master
melvin 2012-10-27 09:23:05 +08:00
parent 23a220c90f
commit 705629aa95
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ public class Empyrial_Archangel {
public static final MagicIfDamageWouldBeDealtTrigger T = new MagicIfDamageWouldBeDealtTrigger(2) {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
if (damage.getTarget()==permanent.getController()) {
if (permanent.isController(damage.getTarget())) {
// Replacement effect. Generates no event or action.
damage.setTarget(permanent);
}