Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When a unit has WithSpriteBody: & WithFacingSpriteBody: , alongside GrantConditionOnDeploy: & Carryable:
The Carryable: trait ignores any conditions given to the unit & defaults to WithSpriteBody over WithFacingSpriteBody.
This is because alwaysactive is not granted to the unit when it is picked up.
If you delete:
It will be the same, except this time it will render WithSpriteBody@deployed: & not WithFacingSpriteBody:, because undeployed has not been granted.
Additionally, If you reverse the conditions in the repo example above & use the deployed condition, it will break GrantConditionOnDeploy:
The unit turns and trys to deploy but gets stuck and becomes unable to move & unable to deploy or undeploy.
This is a consequence of
See also #16098.