Skip to content

Commit d2d9528

Browse files
committed
fix: Prevent same entity
1 parent cd531dd commit d2d9528

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public ProxySpell(MagicConfig config, String spellName) {
3232

3333
@Override
3434
public boolean castBuff(SpellData data) {
35+
if (data.target().equals(data.caster())) return false;
3536
proxies.put(data.target().getUniqueId(), data.caster());
3637
return true;
3738
}

0 commit comments

Comments
 (0)