replace MagicPermanentState.PreventAllDamage with MagicIfDamageWouldBeDealtTrigger.PreventDamageDealtTo