Added some debug logging, Character.Revive removes the existing AITarget from the character before creating a new one
This commit is contained in:
@@ -1957,6 +1957,10 @@ namespace Barotrauma
|
||||
{
|
||||
isDead = false;
|
||||
|
||||
if (aiTarget != null)
|
||||
{
|
||||
aiTarget.Remove();
|
||||
}
|
||||
aiTarget = new AITarget(this);
|
||||
|
||||
Health = Math.Max(maxHealth * 0.1f, health);
|
||||
|
||||
Reference in New Issue
Block a user