mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-04 19:12:50 -04:00
Buffs removed only if removeOnRespec flag present
This commit is contained in:
@@ -566,6 +566,7 @@ public class PlayerService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
grantLevel(creature, level);
|
||||
|
||||
player.setProfessionIcon(Professions.get(profession));
|
||||
}
|
||||
|
||||
@@ -602,7 +603,11 @@ public class PlayerService implements INetworkDispatch {
|
||||
//core.equipmentService.unequip(creature, equipment);
|
||||
//}
|
||||
|
||||
core.buffService.clearBuffs(creature);
|
||||
for (Buff buff : creature.getBuffList()) {
|
||||
if (buff.isRemoveOnRespec()) {
|
||||
core.buffService.removeBuffFromCreature(creature, buff);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
String[] skills;
|
||||
|
||||
Reference in New Issue
Block a user