Fixed a few global variabl accesses
Avoided using put_unit where possible; worked on mage shield combat animations

put_unit with unit tables is somewhat slow, compared with using proxy units.