Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Fixed wrong base damage
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAz928 authored Oct 18, 2017
1 parent 3a442b7 commit 21ae93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VanillaEnchants/handlers/ProjectileProtection.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function onDamage(EntityDamageEvent $event){
$reduce *= 2;
$reduce /= 1.5;
$reduce = round($reduce);
$dmg = $event->getFinalDamage() - $reduce;
$dmg = $event->getDamage() - $reduce;
$dmg = $dmg < 0 ? 1 : $dmg;
$event->setDamage($dmg);
}
Expand Down

0 comments on commit 21ae93e

Please sign in to comment.