TeamREPENTOGON / REPENTOGON

Script extender for The Binding of Isaac: Repentance
https://repentogon.com/
GNU General Public License v2.0
130 stars 14 forks source link

MC_GET_STATUS_EFFECT_TARGET #506

Open namishere opened 1 month ago

namishere commented 1 month ago

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)