|
@@ -2698,7 +2698,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return {@code true} if the player has a pet, {@code false} otherwise
|
|
|
+ * @return {@code true} if the character has a summon, {@code false} otherwise
|
|
|
*/
|
|
|
public boolean hasSummon()
|
|
|
{
|
|
@@ -6151,7 +6151,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
|
|
|
}
|
|
|
|
|
|
// TODO: Unhardcode it!
|
|
|
- if ((oldSkill instanceof L2SkillSummon) && (oldSkill.getId() == 710) && getActingPlayer().hasSummon() && (getActingPlayer().getSummon().getNpcId() == 14870))
|
|
|
+ if ((oldSkill instanceof L2SkillSummon) && (oldSkill.getId() == 710) && hasSummon() && (getSummon().getNpcId() == 14870))
|
|
|
{
|
|
|
getActingPlayer().getSummon().unSummon(getActingPlayer());
|
|
|
}
|