Thread Tools Display Modes
Prev Previous Post   Next Post Next
01/09/19, 04:58 AM   #1
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
[fixed] CallSecureProtected('SelectSlotAbility',..

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

Last edited by Gandalf : 07/15/19 at 01:59 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » Bug Reports » [open] CallSecureProtected('SelectSlotAbility',..

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off