rename source to dmgSource
parent
a38902137d
commit
ac6f93bd07
|
@ -16,14 +16,14 @@ public class Dissipation_Field {
|
||||||
@Override
|
@Override
|
||||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
|
||||||
final MagicPlayer player=permanent.getController();
|
final MagicPlayer player=permanent.getController();
|
||||||
final MagicSource source=damage.getSource();
|
final MagicSource dmgSource=damage.getSource();
|
||||||
return (damage.getTarget()==player&&source.isPermanent()) ?
|
return (damage.getTarget()==player && dmgSource.isPermanent()) ?
|
||||||
new MagicEvent(
|
new MagicEvent(
|
||||||
permanent,
|
permanent,
|
||||||
player,
|
player,
|
||||||
new Object[]{source},
|
new Object[]{dmgSource},
|
||||||
this,
|
this,
|
||||||
"Return "+source+" to its owner's hand."):
|
"Return "+dmgSource+" to its owner's hand."):
|
||||||
MagicEvent.NONE;
|
MagicEvent.NONE;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue