REPENTOGON icon indicating copy to clipboard operation
REPENTOGON copied to clipboard

MC_GET_STATUS_EFFECT_TARGET

Open namishere opened this issue 1 year ago • 0 comments

Called when a status effect is about to be applied to an Entity. Allows returning another Entity to apply the status effect to instead. Will still attempt to recursively copy the status effect to all children, so best used with desired Parent.

Usage:

mod:AddCallback(ModCallbacks.MC_GET_STATUS_EFFECT_TARGET, function (_, entity)
	print(entity.Type)
	return Isaac.GetPlayer()
end, EntityType.ENTITY_MINISTRO)

namishere avatar Jul 18 '24 01:07 namishere