forked from External/mage
fixes for issues 18, 19, 20, 21 + more fixes
This commit is contained in:
parent
2aad7682bd
commit
428609ab8b
58 changed files with 482 additions and 356 deletions
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
package mage.abilities.effects;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.Constants.EffectType;
|
||||
import mage.Constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -38,18 +39,26 @@ import mage.abilities.Ability;
|
|||
*/
|
||||
public abstract class EffectImpl<T extends Effect<T>> implements Effect<T> {
|
||||
|
||||
protected final UUID id;
|
||||
protected final Outcome outcome;
|
||||
protected EffectType effectType;
|
||||
|
||||
public EffectImpl(Outcome outcome) {
|
||||
this.id = UUID.randomUUID();
|
||||
this.outcome = outcome;
|
||||
}
|
||||
|
||||
public EffectImpl(final EffectImpl effect) {
|
||||
this.id = effect.id;
|
||||
this.outcome = effect.outcome;
|
||||
this.effectType = effect.effectType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Ability source) {
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue