mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	ReAdding Azia's fixes that got removed when I fucked up on the license change.
This commit is contained in:
		| @@ -1044,6 +1044,13 @@ namespace Meteor.Map.Actors | ||||
|             resultContainer.CombineLists(); | ||||
|             DoBattleAction(0, 0x7c000062, resultContainer.GetList()); | ||||
|  | ||||
|             //If new class, init abilties and level | ||||
|             if (charaWork.battleSave.skillLevel[classId - 1] <= 0) | ||||
|             { | ||||
|                 UpdateClassLevel(classId, 1); | ||||
|                 EquipAbilitiesAtLevel(classId, 1); | ||||
|             } | ||||
|  | ||||
|             //Set rested EXP | ||||
|             charaWork.parameterSave.state_mainSkill[0] = classId; | ||||
|             charaWork.parameterSave.state_mainSkillLevel = charaWork.battleSave.skillLevel[classId-1]; | ||||
| @@ -2143,7 +2150,7 @@ namespace Meteor.Map.Actors | ||||
|  | ||||
|         public void UnequipAbility(ushort hotbarSlot, bool printMessage = true) | ||||
|         { | ||||
|             ushort trueHotbarSlot = (ushort)(hotbarSlot + charaWork.commandBorder); | ||||
|             ushort trueHotbarSlot = (ushort)(hotbarSlot + charaWork.commandBorder - 1); | ||||
|             uint commandId = charaWork.command[trueHotbarSlot]; | ||||
|             Database.UnequipAbility(this,  hotbarSlot); | ||||
|             charaWork.command[trueHotbarSlot] = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user