- Joined
- Jul 10, 2008
- Messages
- 353
What happens if I disable a spellbook to a player that doesn't have at all that spellbook?
example:
1. There is a trigger detecting when skill A969 is used and calls FuncA969b.
2. TriggerUnit is common for team 1 or 2 (any player in team 1 or 2 respectively can click it to "pick" it up and use it).
Are there any underlying issues with such usage? (like lag, desyncs etc)
example:
JASS:
function FuncA969c takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(false,'A964',GetEnumPlayer())
endfunction
function FuncA969b takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'A964') // <--spellbook
call ForForce(bj_FORCE_ALL_PLAYERS,function FuncA969c)
call Func0001(25.) // <-- triggersleepaction
call UnitRemoveAbility(GetTriggerUnit(),'A964')
endfunction
2. TriggerUnit is common for team 1 or 2 (any player in team 1 or 2 respectively can click it to "pick" it up and use it).
Are there any underlying issues with such usage? (like lag, desyncs etc)