Fixed bug where Beast Lore wouldn't work on friendly pets.

Fixes #805
This commit is contained in:
GJ 2013-03-07 09:18:27 -05:00
parent 29520dc95c
commit ade9e20cdd
2 changed files with 5 additions and 4 deletions

View File

@ -14,6 +14,7 @@ Version 1.4.03-dev
= Fixed bug where Fishing was becoming less successful at higher levels
= Fixed bug with using Salvage on stacked items.
= Fixed bug where the 'mcmmo.commands.ptp.world.all' was registered twice
= Fixed bug where Beast Lore wouldn't work on friendly pets
! Moved the Salvage unlock level from config.yml to advanced.yml
- Removed option to disable Salvage via the config file. This should be handled via permissions instead.
- Removed the option to use Woodcutting without an axe from the config file.

View File

@ -64,10 +64,6 @@ public final class CombatUtils {
ItemStack heldItem = player.getItemInHand();
if (target instanceof Tameable) {
if (isFriendlyPet(player, (Tameable) target)) {
return;
}
if (heldItem.getType() == Material.BONE) {
TamingManager tamingManager = mcMMOPlayer.getTamingManager();
@ -77,6 +73,10 @@ public final class CombatUtils {
return;
}
}
if (isFriendlyPet(player, (Tameable) target)) {
return;
}
}
if (ItemUtils.isSword(heldItem)) {