diff --git a/FFXIVClassic Map Server/actors/chara/Character.cs b/FFXIVClassic Map Server/actors/chara/Character.cs index 60d94b62..9570dd50 100644 --- a/FFXIVClassic Map Server/actors/chara/Character.cs +++ b/FFXIVClassic Map Server/actors/chara/Character.cs @@ -847,7 +847,7 @@ namespace FFXIVClassic_Map_Server.Actors } //TP is only gained from autoattacks and abilities - if (action.commandType == CommandType.AutoAttack || action.commandType == CommandType.Ability && action.hitType != HitType.Miss) + if ((action.commandType == CommandType.AutoAttack || action.commandType == CommandType.Ability) && action.hitType != HitType.Miss) { //TP gained on an attack is usually 100 * delay. //Store TP seems to add .1% per point. diff --git a/FFXIVClassic Map Server/actors/chara/ai/BattleCommand.cs b/FFXIVClassic Map Server/actors/chara/ai/BattleCommand.cs index 7f96bd14..d23a4913 100644 --- a/FFXIVClassic Map Server/actors/chara/ai/BattleCommand.cs +++ b/FFXIVClassic Map Server/actors/chara/ai/BattleCommand.cs @@ -387,5 +387,10 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai { return (ushort) commandType; } + + public ushort GetActionType() + { + return (ushort) actionType; + } } } \ No newline at end of file