Check if exp or sp is gained before sending reward message.
This commit is contained in:
@@ -174,7 +174,7 @@ public class PlayerStat extends PlayableStat
|
||||
sm = new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_EXPERIENCE);
|
||||
sm.addLong(finalExp);
|
||||
}
|
||||
else
|
||||
else if ((finalExp > 0) || (finalSp > 0))
|
||||
{
|
||||
sm = new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_EXPERIENCE_AND_S2_SP);
|
||||
sm.addLong((long) addToExp);
|
||||
|
||||
Reference in New Issue
Block a user