I had to put it in player.kod, because otherwise a player's vulnerabilities can add an unpredictable amount of damage and kill the player even if we've carefully calculated initial damage. If we use the absolute parameter to avoid that, then walls will bypass resists like illusionary damage does.