mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
You can now cast more than one spell of the same type if they have different traits
This commit is contained in:
parent
547b5f8c63
commit
75aff1e884
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue