Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function affrayChallenger_onAIUpdate( unit, _ )
- unit:RemoveFlag( 0x0006 + 0x0035, 0x00000100 + 0x02000000 )
- unit:DisableCombat( 0 )
- local value = unit:GetUInt64Value( 0x0006 + 0x000C )
- local target = unit:GetUnitByGUID( value )
- -- dont crash please
- if target then
- unit:AttackReaction( target, 35, 0 )
- end
- unit:RemoveAIUpdateEvent()
- end
- RegisterUnitEvent( 6240, 21, affrayChallenger_onAIUpdate )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement