Changed summon points logic.

This commit is contained in:
MobiusDev
2015-05-11 14:22:36 +00:00
parent 033cc35f80
commit f3458d8c39
26 changed files with 169 additions and 57 deletions

View File

@@ -53,7 +53,7 @@ public class ConditionPlayerHasFreeSummonPoints extends Condition
player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THE_S1_SKILL_DUE_TO_INSUFFICIENT_SUMMON_POINTS);
canSummon = false;
}
else if ((player.getSummonPoints() + _summonPoints) > player.getMaxSummonPoints())
else if ((player.getUsedSummonPoints() + _summonPoints) > player.getMaxSummonPoints())
{
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_CANNOT_USE_THE_S1_SKILL_DUE_TO_INSUFFICIENT_SUMMON_POINTS);
sm.addSkillName(skill);