<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetBlockedAbilities</id>
	<title>API:GetBlockedAbilities - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetBlockedAbilities"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetBlockedAbilities&amp;action=history"/>
	<updated>2026-10-17T07:29:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:GetBlockedAbilities&amp;diff=30345&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetBlockedAbilities&amp;diff=30345&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:05Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Ability}}&lt;br /&gt;
Returns the abilities that are currently blocked for the player, grouped by kind.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
blocked = GetBlockedAbilities()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;blocked : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Table with three fields. Nothing is returned if there is no player object or the client has no blocked-ability data.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;standard&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of ability ids (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;), indexed from 1.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tactic&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of tactic ability ids, indexed from 1.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;morale&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of morale ability ids, indexed from 1.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Entries of the client&amp;#039;s blocked-ability list that are not active are skipped.&lt;br /&gt;
* A new table is built on every call. The stock &amp;lt;code&amp;gt;Player.IsAbilityBlocked&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;easystem_utils/source/player.lua&amp;lt;/code&amp;gt;) caches it and refreshes it when &amp;lt;code&amp;gt;GameData.Player.blockedAbilitiesDirty&amp;lt;/code&amp;gt; is set.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;easystem_utils/source/player.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local function GetBlockedAbilitiesOfType( abilityType )&lt;br /&gt;
    if( GameData.Player.blockedAbilitiesDirty )&lt;br /&gt;
    then&lt;br /&gt;
        GameData.Player.blockedAbilitiesDirty = false&lt;br /&gt;
        m_blockedAbilities = GetBlockedAbilities()&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if( abilityType == GameData.AbilityType.STANDARD )&lt;br /&gt;
    then&lt;br /&gt;
        return m_blockedAbilities.standard&lt;br /&gt;
    elseif( abilityType == GameData.AbilityType.TACTIC )&lt;br /&gt;
    then&lt;br /&gt;
        return m_blockedAbilities.tactic&lt;br /&gt;
    elseif( abilityType == GameData.AbilityType.MORALE )&lt;br /&gt;
    then&lt;br /&gt;
        return m_blockedAbilities.morale&lt;br /&gt;
    end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:IsAbilityEnabled|IsAbilityEnabled]]&lt;br /&gt;
* [[API:GetHotbarData|GetHotbarData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>