Pathfinder: Wrath of the Righteous - Enhanced Edition

Pathfinder: Wrath of the Righteous - Enhanced Edition

View Stats:
mobidick Sep 25, 2021 @ 1:32am
[Please Dev] Debugging Swarm Feast Form Auto Devouring doesn't work
public bool IsTargetRestrictionPassed(UnitEntityData caster, TargetWrapper t)
{
UnitEntityData unit = t.Unit;
return unit != null && !unit.State.Features.SuppressedDecomposition && !unit.State.HasCondition(UnitCondition.DevouredBySwarm) && unit.State.IsFinallyDead;
}

this is a condition checking if target is able to devour when his hp was reduced to below zero.
I've added some log to figure out why it doesn't work.

log was like this

[114.9566 - Default]: False: Zombie Lord : isFinallyDead False : isDead False : SuprresedDecomposition False(0) : Devoured : False

so even if target's hp was reduced below zero, actually "isFinallyDead" flag is never set to True. that's why auto devour doesn't work after patch 1.0.6

Can you please fix this? I can't make progress my swarm character due to this bug
Date Posted: Sep 25, 2021 @ 1:32am
Posts: 0