Skip to content

Commit 080eaac

Browse files
authored
Merge pull request #9 from swgemu/unstable
Merge unstable into aitest
2 parents b7052e9 + a646dc0 commit 080eaac

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

MMOCoreORB/src/server/zone/managers/mission/MissionManagerImplementation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,8 @@ void MissionManagerImplementation::randomizeGenericDestroyMission(CreatureObject
763763
if (difficulty == 5)
764764
difficulty = 4;
765765

766-
int diffDisplay = difficultyLevel + 7;
766+
int diffDisplay = difficultyLevel < 5 ? 4 : difficultyLevel;
767+
767768
if (player->isGrouped())
768769
diffDisplay += player->getGroup()->getGroupLevel();
769770
else

MMOCoreORB/src/server/zone/objects/creature/commands/StartMusicCommand.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class StartMusicCommand: public QueueCommand {
124124
return GENERALERROR;
125125
}
126126

127+
creature->sendSystemMessage("@performance:music_start_self"); // You begin playing.
127128
startMusic(creature, performanceIndex, instrument);
128129

129130
return SUCCESS;

MMOCoreORB/src/server/zone/objects/player/sessions/EntertainingSession.idl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ class EntertainingSession extends Facade {
103103
}
104104

105105
public int cancelSession() {
106-
stopMusic(true);
107-
stopDancing();
106+
if (isPlayingMusic()) {
107+
stopMusic(true);
108+
} else {
109+
stopDancing();
110+
}
108111

109112
return 0;
110113
}

0 commit comments

Comments
 (0)