Bug Description:
After porting from one pvp campaign to another while the char is in combat, CallSecureProtected('SelectSlotAbility',...)
will fail with reason="secure protected functions cannot be called while in lockdown"
Additional comments:
#1 campaign porting resolves the combat state, but leaves an internal lockdown state triggered
#2 manually ability slotting works even when that internal lock is triggered
#3 getting in/out of combat by killing a mob/player resolves that internal lockdown
Code to catch the error:
Code:
local success, reason = CallSecureProtected('SelectSlotAbility', SkillId2Idx(ability), 2+slot)
if not success then
d("Warning: "..GetAbilityName(ability).."] not slotted: <"..tostring(reason)..">")
end