[refactor] removed generic parameter from Spell

This commit is contained in:
North 2014-05-31 23:19:26 +03:00
parent 289412bbc0
commit e43bc35c14
3 changed files with 6 additions and 7 deletions

View file

@ -67,9 +67,8 @@ import mage.watchers.Watcher;
/**
*
* @author BetaSteward_at_googlemail.com
* @param <T>
*/
public class Spell<T extends Spell<T>> implements StackObject, Card {
public class Spell implements StackObject, Card {
private final List<Card> spellCards = new ArrayList<>();
private final List<SpellAbility> spellAbilities = new ArrayList<>();
@ -100,7 +99,7 @@ public class Spell<T extends Spell<T>> implements StackObject, Card {
this.fromZone = fromZone;
}
public Spell(final Spell<T> spell) {
public Spell(final Spell spell) {
this.id = spell.id;
for (SpellAbility spellAbility: spell.spellAbilities) {
this.spellAbilities.add(spellAbility.copy());