Fixing awkward Bukkit bug related to Flame arrows.

This commit is contained in:
GJ
2013-01-24 21:55:56 -05:00
parent 4639b8b939
commit f5179cdcea
4 changed files with 24 additions and 56 deletions

View File

@ -60,11 +60,7 @@ public class ArcheryManager extends SkillManager {
* @param event The event to modify.
*/
public void skillShot(EntityDamageEvent event) {
if (Misc.isNPCPlayer(player) || !Permissions.archeryBonus(player)) {
return;
}
if (skillLevel >= Archery.skillShotIncreaseLevel) {
if (skillLevel >= Archery.skillShotIncreaseLevel && Permissions.archeryBonus(player)) {
SkillShotEventHandler eventHandler = new SkillShotEventHandler(this, event);
eventHandler.calculateDamageBonus();