[General] Combat trigger is delayed for non instant spells

Current behavior: When you cast Lightning bolt/throw/shoot bow or cast anything that has travel time, combat triggers when spell hits the target

Also since its related ill include it here too. Same happens with spells like Elemental Mastery or Clearcasting effects, they are consumed when spell arrives at target.

Expected behavior: Every action that causes combat should trigger combat immidiately when UNIT_SPELLCAST_SUCCEEDED is sent. Not after spell arrives at target

Spells should consume Elemental Mastery/clearcasting when spell is succesfuly casted, not when it arrives at target. At the moment Elemental mastery is undispelable when lightning bolt is flying towards target, which made me think that it might just be visual bug but who knows.

Supporting evidence/data:

Edited by Aeded