Commit e4ac109 1 parent 6c824f0 commit e4ac109 Copy full SHA for e4ac109
File tree 1 file changed +7
-2
lines changed
src/main/java/com/klikli_dev/occultism/common/entity/familiar
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ public void shootRay(List<Integer> targetIds) {
266
266
267
267
private static class RayGoal extends Goal {
268
268
269
- private static final int MAX_COOLDOWN = 20 * 1 ;
269
+ private static final int MAX_COOLDOWN = 20 ;
270
270
271
271
protected final BeholderFamiliarEntity entity ;
272
272
private int cooldown = MAX_COOLDOWN ;
@@ -323,8 +323,13 @@ protected void attack() {
323
323
if (this .entity .hasEffect (MobEffects .DAMAGE_BOOST ))
324
324
damage *= this .entity .getEffect (MobEffects .DAMAGE_BOOST ).getAmplifier () + 2 ;
325
325
326
- if (e != null && owner instanceof Player player ) {
326
+ if (e == null )
327
+ continue ;
328
+
329
+ if (owner instanceof Player player ) {
327
330
e .hurt (this .entity .damageSources ().playerAttack (player ), damage );
331
+ } else {
332
+ e .hurt (this .entity .damageSources ().mobAttack (this .entity ), damage );
328
333
}
329
334
}
330
335
}
You can’t perform that action at this time.
0 commit comments