Actions in OnDraw
Problem
Due to security reasons various player actions will be blocked if called during OnDraw
event.
This includes casting spells, attacking, issuing movement and so on.
OnDraw
and OnImguiDraw
are meant for visuals, not for logic.
Solution
Use OnTick
or OnFastTick
for actual logic and use OnDraw
with OnImguiDraw
only for visuals.