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)
This event can be filtered based on the
target event data.
An event can be claimed by setting
true, or by returning
false from the callback. Claiming the event prevents any lower priority callbacks from being called.
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.
Created: August 10, 2021 18:38:47