mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-23 21:27:46 +00:00
Remove certain effects on class change
This commit is contained in:
parent
706a9fa721
commit
357805d04c
1 changed files with 6 additions and 0 deletions
|
@ -964,6 +964,12 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
|
||||
//Check if bonus point available... set
|
||||
|
||||
//Remove buffs that fall off when changing class
|
||||
CommandResultContainer resultContainer = new CommandResultContainer();
|
||||
statusEffects.RemoveStatusEffectsByFlags((uint)StatusEffectFlags.LoseOnClassChange, resultContainer);
|
||||
resultContainer.CombineLists();
|
||||
DoBattleAction(0, 0x7c000062, resultContainer.GetList());
|
||||
|
||||
//Set rested EXP
|
||||
charaWork.parameterSave.state_mainSkill[0] = classId;
|
||||
charaWork.parameterSave.state_mainSkillLevel = charaWork.battleSave.skillLevel[classId-1];
|
||||
|
|
Loading…
Add table
Reference in a new issue