rename source to dmgSource

master
melvin 2012-09-03 20:33:11 +08:00
parent a38902137d
commit ac6f93bd07
1 changed files with 4 additions and 4 deletions

View File

@ -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