Same for damage lens

This commit is contained in:
Vincent Lee committed 2020-01-23 10:28:45 -06:00
1 parent 947b591c9c
commit 289dd6f9a8
1 file changed
+6 -2
@@ -36,8 +36,12 @@ public class LensDamage extends Lens {
int mana = burst.getMana();
if(mana >= 16) {
burst.setMana(mana - 16);
if(!burst.isFake())
living.attackEntityFrom(DamageSource.MAGIC, 8);
if(!burst.isFake()) {
DamageSource src = entity.getThrower() != null
? DamageSource.causeIndirectMagicDamage(entity, entity.getThrower())
: DamageSource.MAGIC;
living.attackEntityFrom(src, 8);
}
break;
}
}