Faction ability that affects only champions?

Hi there,

I'm trying to create an ability for my faction that applies only the champions that I recruit, so not at my ordinary units that can be trained in the city.

Anyone knows how to do it?

 

I suspect it will be something like

Code: xml
  1. <GameModifier>
  2. <ModType>Player</ModType>

to start, but then I don't know if there is a condition that can apply the modifier only to champions. Whether sovereign is included or not is not that important for me.

Thanks!

2,665 views 3 replies
Reply #2 Top

Quoting Primal_Savage, reply 1

Probably best to unlock a spell (Strategic or Tactical). See The Decalon player ability. Then have the spell cost 0 mana and use:

<SpellTargetType>FriendlyChampion</SpellTargetType>

or

<SpellTargetType>AllFriendlyUnits</SpellTargetType>

<SpellTargetCreatureType>Champion</SpellTargetCreatureType>

 

Could use BattleAutoCast if you make it a talent instead of a faction strength.

 

Thanks Primal_Savage.

I went to route of the spell. I've added a prereq so that only my sovereign could cast it. It works fine for me but there's a problem:

I've just noticed that the AI has cast it on their sovereign too! Maybe I've just found a bug. Or maybe I did something wrong.  :annoyed: