Skip to content

Commit 350167f

Browse files
committed
fix: Remove duplicate
1 parent 7c96a57 commit 350167f

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎core/src/main/java/com/nisovin/magicspells/spells/buff/ProxySpell.java‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import com.nisovin.magicspells.spells.BuffSpell;
1919
import com.nisovin.magicspells.util.MagicConfig;
2020
import com.nisovin.magicspells.events.SpellTargetEvent;
21-
import com.nisovin.magicspells.events.SpellPreImpactEvent;
2221
import com.nisovin.magicspells.spelleffects.EffectPosition;
2322

2423
public class ProxySpell extends BuffSpell {
@@ -72,21 +71,6 @@ public void onSpellTarget(SpellTargetEvent event) {
7271
addUseAndChargeCost(target);
7372
}
7473

75-
@EventHandler(ignoreCancelled = true)
76-
public void onSpellPreImpact(SpellPreImpactEvent event) {
77-
LivingEntity target = event.getTarget();
78-
if (target == null || !isActive(target)) return;
79-
80-
LivingEntity proxyTarget = getProxyTarget(target);
81-
if (proxyTarget == null) return;
82-
83-
SpellData subData = new SpellData(event.getCaster(), proxyTarget, event.getPower());
84-
playRedirectEffects(target, proxyTarget, subData);
85-
86-
event.setRedirected(true);
87-
addUseAndChargeCost(target);
88-
}
89-
9074
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
9175
public void onEntityDamage(EntityDamageByEntityEvent event) {
9276
if (!(event.getEntity() instanceof LivingEntity target) || !isActive(target)) return;

0 commit comments

Comments
 (0)