Add logging for cutscene and health increased detection

This commit is contained in:
Mercurio 2024-09-25 23:28:33 +02:00
parent e1f4f4406e
commit 272c41773c

View file

@ -77,13 +77,18 @@ namespace DalamudShock
if (player == null || Condition[ConditionFlag.WatchingCutscene] == true || if (player == null || Condition[ConditionFlag.WatchingCutscene] == true ||
Condition[ConditionFlag.BetweenAreas] == true || Condition[ConditionFlag.BetweenAreas] == true ||
Condition[ConditionFlag.WatchingCutscene78] == true) return; Condition[ConditionFlag.WatchingCutscene78] == true)
{
// PluginLog.Information("Player is in cutscene or teleporting");
return;
}
var currentHealth = player.CurrentHp; var currentHealth = player.CurrentHp;
if (currentHealth >= lastHealth) if (currentHealth >= lastHealth)
{ {
lastHealth = currentHealth; lastHealth = currentHealth;
// PluginLog.Information("Player health didn't decrease.");
return; return;
} }