diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index 4727ec5..6efbf0d 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java b/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java index 871b8f7..38b6994 100644 --- a/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java +++ b/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java @@ -181,6 +181,20 @@ public final class TwosideKeeperAPI { return CustomDamage.ApplyDamage(damage, damager, target, weapon, reason, flags); } + /** + * Returns how much damage would be dealt with this particular calculation of damage dealt. Uses same exact arguments as applyDamage. + * @param damage + * @param damager + * @param target + * @param weapon + * @param reason + * @param flags + * @return + */ + public static double CalculateDamage(double damage, Entity damager, LivingEntity target, ItemStack weapon, String reason, int flags) { + return CustomDamage.CalculateDamage(damage, damager, target, weapon, reason, flags); + } + /** * Returns the string of the last damage reason the player took. All attacks in the game except * for basic attacks from monsters and projectiles (which makes this return null) have a reason.