mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Same for damage lens
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user