Change attractive spell to use chaos to make it sticky

This commit is contained in:
Sollace 2022-09-11 23:32:05 +02:00
parent b1599c74af
commit 92fea6d349

View file

@ -138,7 +138,7 @@ public class AttractiveSpell extends ShieldSpell implements ProjectileSpell, Hom
@Override
public void onImpact(MagicProjectileEntity projectile, Entity entity) {
if (!isDead() && getTraits().get(Trait.GENEROSITY) > 0) {
if (!isDead() && getTraits().get(Trait.CHAOS) > 0) {
setDead();
Caster.of(entity).ifPresent(getType().create(getTraits())::apply);
}