diff --git a/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java b/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java index 1d8fb749..25194810 100644 --- a/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java +++ b/src/com/sk89q/worldguard/bukkit/WorldGuardEntityListener.java @@ -152,6 +152,17 @@ public void onEntityDamageByProjectile(EntityDamageByProjectileEvent event) { } } } + if (attacker != null && attacker instanceof Skeleton) { + if (plugin.useRegions) { + Vector pt = toVector(defender.getLocation()); + + if (!plugin.regionManager.getApplicableRegions(pt) + .allowsFlag(AreaFlags.FLAG_MOB_DAMAGE)) { + event.setCancelled(true); + return; + } + } + } } }