<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?action=history&amp;feed=atom&amp;title=Template%3AUnitAbilityConditionalDef</id>
	<title>Template:UnitAbilityConditionalDef - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?action=history&amp;feed=atom&amp;title=Template%3AUnitAbilityConditionalDef"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:UnitAbilityConditionalDef&amp;action=history"/>
	<updated>2026-10-02T12:53:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:UnitAbilityConditionalDef&amp;diff=13233&amp;oldid=prev</id>
		<title>76561198026315966: obelisk-bot: uploading initial Cargo templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:UnitAbilityConditionalDef&amp;diff=13233&amp;oldid=prev"/>
		<updated>2026-05-13T01:13:01Z</updated>

		<summary type="html">&lt;p&gt;obelisk-bot: uploading initial Cargo templates&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:13, 13 May 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l48&quot;&gt;Line 48:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 48:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| affected_stat = {{{affected_stat|}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| affected_stat = {{{affected_stat|}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| affected_stat_amount = {{{affected_stat_amount|}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| affected_stat_amount = {{{affected_stat_amount|}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Created &amp;lt;code&amp;gt;UnitAbilityConditional&amp;lt;/code&amp;gt; entry: &amp;lt;code&amp;gt;{{{ability_id|}}}&amp;lt;/code&amp;gt;&lt;/ins&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key HOMM_:diff:1.41:old-13156:rev-13233:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>76561198026315966</name></author>
	</entry>
	<entry>
		<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:UnitAbilityConditionalDef&amp;diff=13156&amp;oldid=prev</id>
		<title>76561198026315966: obelisk-bot: uploading initial Cargo templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:UnitAbilityConditionalDef&amp;diff=13156&amp;oldid=prev"/>
		<updated>2026-05-12T23:33:31Z</updated>

		<summary type="html">&lt;p&gt;obelisk-bot: uploading initial Cargo templates&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
Splinter for &amp;lt;code&amp;gt;ability_type = conditional_passive&amp;lt;/code&amp;gt;. Encodes &amp;quot;if condition is met, the unit gets stat bonus X.&amp;quot; 17 instances in the 2026-05-03 corpus, mostly the demon-faction &amp;quot;if your army has N unique demons&amp;quot; pattern.&lt;br /&gt;
&lt;br /&gt;
Join to &amp;lt;code&amp;gt;UnitAbilityDef&amp;lt;/code&amp;gt; on &amp;lt;code&amp;gt;ability_id&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Schema ==&lt;br /&gt;
{{#cargo_declare:_table=UnitAbilityConditional&lt;br /&gt;
| ability_id = String&lt;br /&gt;
| condition_check = String&lt;br /&gt;
| condition_target = String&lt;br /&gt;
| condition_value = String&lt;br /&gt;
| affected_stat = String&lt;br /&gt;
| affected_stat_amount = Float&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{UnitAbilityConditionalDef&lt;br /&gt;
| ability_id = String                         &amp;lt;!-- FK -&amp;gt; UnitAbility.ability_id --&amp;gt;&lt;br /&gt;
| condition_check = String                    &amp;lt;!-- e.g. &amp;quot;unique_units_count&amp;quot; --&amp;gt;&lt;br /&gt;
| condition_target = String                   &amp;lt;!-- e.g. &amp;quot;ally&amp;quot; --&amp;gt;&lt;br /&gt;
| condition_value = String                    &amp;lt;!-- e.g. &amp;quot;demon&amp;quot; --&amp;gt;&lt;br /&gt;
| affected_stat = String&lt;br /&gt;
| affected_stat_amount = Float&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Field notes ==&lt;br /&gt;
&amp;#039;&amp;#039; &amp;#039;&amp;#039;*&amp;lt;code&amp;gt;condition_*&amp;lt;/code&amp;gt; fields decompose** the source JSON&amp;#039;s positional triple &amp;lt;code&amp;gt;[&amp;quot;unique_units_count&amp;quot;, &amp;quot;ally&amp;quot;, &amp;quot;demon&amp;quot;]&amp;lt;/code&amp;gt; into three columns. This matches the structure of every conditional passive in the current corpus — the check function name, the side it applies to, and the parameter the check requires.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;condition_check&amp;lt;/code&amp;gt; enum values&amp;#039;&amp;#039;&amp;#039; seen in the wild:&lt;br /&gt;
** &amp;lt;code&amp;gt;unique_units_count&amp;lt;/code&amp;gt; — &amp;quot;you have N or more units of a faction&amp;quot;&lt;br /&gt;
** &amp;lt;code&amp;gt;unique_fractions_buff&amp;lt;/code&amp;gt; — variant on the same theme&lt;br /&gt;
** More may surface in future patches; treat as open-string.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;condition_target&amp;lt;/code&amp;gt;:&amp;#039;&amp;#039;&amp;#039; typically &amp;lt;code&amp;gt;ally&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;enemy&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;condition_value&amp;lt;/code&amp;gt;:&amp;#039;&amp;#039;&amp;#039; a faction id (&amp;lt;code&amp;gt;demon&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;human&amp;lt;/code&amp;gt;, …) or similar discriminator. Always a string.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;affected_stat&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;affected_stat_amount&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; describe the bonus granted when the condition fires. The current corpus has at most one stat per conditional passive, so a single pair suffices. If a future patch adds multi-stat conditionals, this would become a list — handle by extending the splinter or moving to a side table.&lt;br /&gt;
&lt;br /&gt;
== Related tables ==&lt;br /&gt;
* [[Template:UnitAbilityDef|UnitAbility]] — parent (1:1 on &amp;lt;code&amp;gt;ability_id&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Cargo Definitions]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{#cargo_store:_table=UnitAbilityConditional&lt;br /&gt;
| ability_id = {{{ability_id|}}}&lt;br /&gt;
| condition_check = {{{condition_check|}}}&lt;br /&gt;
| condition_target = {{{condition_target|}}}&lt;br /&gt;
| condition_value = {{{condition_value|}}}&lt;br /&gt;
| affected_stat = {{{affected_stat|}}}&lt;br /&gt;
| affected_stat_amount = {{{affected_stat_amount|}}}&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>76561198026315966</name></author>
	</entry>
</feed>