You can now cast more than one spell of the same type if they have different traits

This commit is contained in:
Sollace 2022-09-11 23:32:46 +02:00
parent 547b5f8c63
commit 75aff1e884

View file

@ -31,11 +31,11 @@ public record CustomisedSpellType<T extends Spell> (
@Override
public boolean test(Spell spell) {
return type.test(spell);
return type.test(spell) && spell.getTraits().equals(traits);
}
public ItemStack getDefaultStack() {
return type.getDefualtStack();
return traits.applyTo(type.getDefualtStack());
}
public TypedActionResult<CustomisedSpellType<?>> toAction() {