Skip to content

Commit

Permalink
[Game] The functionality of pulse triggers has been restored. (AAEmu#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NL0bP authored Dec 24, 2024
1 parent 3a8118f commit 3a9be73
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions AAEmu.Game/Models/Game/DoodadObj/Funcs/DoodadFuncPulseTrigger.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using AAEmu.Game.Models.Game.DoodadObj.Templates;
using System.Linq;

using AAEmu.Game.Models.Game.Char;
using AAEmu.Game.Models.Game.DoodadObj.Templates;
using AAEmu.Game.Models.Game.Units;

namespace AAEmu.Game.Models.Game.DoodadObj.Funcs;
Expand All @@ -10,18 +13,19 @@ public class DoodadFuncPulseTrigger : DoodadPhaseFuncTemplate

public override bool Use(BaseUnit caster, Doodad owner)
{
return true;
// TODO: Currently disabled because of lacking functionality of Pulse Triggers
if (caster is not Character)
{
return true;
}

/*
// Grab the calling PhaseFunc
var thisPhaseFunc = owner.CurrentPhaseFuncs.FirstOrDefault(x => x.FuncId == Id);
if (thisPhaseFunc == null)
{
Logger.Warn($"DoodadFuncPulseTrigger Flag={Flag}, NextPhase={NextPhase} was not triggered from a DoodadFuncPulseTrigger");
return false; // Fail check as there seems to be a mismatch
}

Logger.Debug($"DoodadFuncPulseTrigger Flag={Flag}, NextPhase={NextPhase}, PulseTriggered={thisPhaseFunc.PulseTriggered}");

if (Flag && !thisPhaseFunc.PulseTriggered)
Expand All @@ -33,6 +37,6 @@ public override bool Use(BaseUnit caster, Doodad owner)
}

return false;
*/

}
}

0 comments on commit 3a9be73

Please sign in to comment.