Various pet related fixes.
This commit is contained in:
@@ -61,8 +61,9 @@ public class BeastSoulShot implements IItemHandler
|
||||
}
|
||||
|
||||
final List<L2Summon> aliveServitor = playable.getServitors().values().stream().filter(s -> !s.isDead()).collect(Collectors.toList());
|
||||
if (aliveServitor.isEmpty())
|
||||
if ((pet == null) && aliveServitor.isEmpty())
|
||||
{
|
||||
activeOwner.sendMessage("asdas");
|
||||
activeOwner.sendPacket(SystemMessageId.SOULSHOTS_AND_SPIRITSHOTS_ARE_NOT_AVAILABLE_FOR_A_DEAD_PET_OR_SERVITOR_SAD_ISN_T_IT);
|
||||
return false;
|
||||
}
|
||||
|
@@ -61,7 +61,7 @@ public class BeastSpiritShot implements IItemHandler
|
||||
}
|
||||
|
||||
final List<L2Summon> aliveServitor = playable.getServitors().values().stream().filter(s -> !s.isDead()).collect(Collectors.toList());
|
||||
if (aliveServitor.isEmpty())
|
||||
if ((pet == null) && aliveServitor.isEmpty())
|
||||
{
|
||||
activeOwner.sendPacket(SystemMessageId.SOULSHOTS_AND_SPIRITSHOTS_ARE_NOT_AVAILABLE_FOR_A_DEAD_PET_OR_SERVITOR_SAD_ISN_T_IT);
|
||||
return false;
|
||||
|
@@ -50,6 +50,5 @@ public final class PetAttack implements IPlayerActionHandler
|
||||
{
|
||||
pet.doAttack(activeChar.getTarget());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user