mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-08 23:13:25 -04:00
Fixed Flourish spam gets you insane amount of XP
This commit is contained in:
@@ -192,7 +192,10 @@ public class EntertainmentService extends Service {
|
||||
Player performer = fi.getPerformer();
|
||||
CreatureObject performerObject = performer.getCreatureObject();
|
||||
|
||||
performerObject.setPerformanceCounter(performerObject.getPerformanceCounter() + 1);
|
||||
if (performerObject.getPerformanceCounter() != 0)
|
||||
return;
|
||||
|
||||
performerObject.setPerformanceCounter(1);
|
||||
|
||||
// Send the flourish animation to the owner of the creature and owners of creatures observing
|
||||
performerObject.sendObserversAndSelf(new Animation(performerObject.getObjectId(), fi.getFlourishName()));
|
||||
@@ -313,6 +316,7 @@ public class EntertainmentService extends Service {
|
||||
private void startDancing(CreatureObject dancer, String danceName) {
|
||||
dancer.setAnimation("dance_" + performanceMap.get(danceName).getPerformanceId());
|
||||
dancer.setPerformanceId(0); // 0 - anything else will make it look like we're playing music
|
||||
dancer.setPerformanceCounter(0);
|
||||
dancer.setPerforming(true);
|
||||
dancer.setPosture(Posture.SKILL_ANIMATING);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user