absorbedMagic⚓︎
This event is triggered after magic absorption absorbs and cancels a magic effect, and just before magic absorption gives magicka to the target. It can control the amount of magicka restored.
This event occurs once per effect restored, so a multi-effect spell may trigger this multiple times. The default amount restored is equal to the casting cost of the entire spell, which is the vanilla behaviour.
--- @param e absorbedMagicEventData
local function absorbedMagicCallback(e)
end
event.register(tes3.event.absorbedMagic, absorbedMagicCallback)
Tip
This event can be filtered based on the target event data.
Tip
An event can be claimed by setting e.claim to true, or by returning false from the callback. Claiming the event prevents any lower priority callbacks from being called.
Event Data⚓︎
absorb(number): The amount of magicka to restore to the actor.mobile(tes3mobileActor): Read-only. The mobile actor that absorbed the spell.source(tes3alchemy, tes3enchantment, tes3spell): Read-only. The magic source.sourceInstance(tes3magicSourceInstance): Read-only. The unique instance of the magic source.target(tes3reference): Read-only. The actor that absorbed the spell.