diff --git a/src/VanillaEnchants/handlers/Power.php b/src/VanillaEnchants/handlers/Power.php index a335f4b..1729bc3 100644 --- a/src/VanillaEnchants/handlers/Power.php +++ b/src/VanillaEnchants/handlers/Power.php @@ -21,10 +21,10 @@ public function onDamage(EntityDamageEvent $event){ return false; } $item = $damager->getInventory()->getItemInHand(); - if($item->hasEnchantment(19) && $item->isBow()){ + if($item->hasEnchantment(19) && $item->getId() == 261){ $add = $item->getEnchantment(19)->getLevel() * 0.5 + 3; - $event->setFinalDamage($event->getFinalDamage() + $add); + $event->setFinalDamage($event->getFinalDamage() + $add); } } } -} \ No newline at end of file +}