GAE/Cast spell
Cast spell is a limited command that lets you perform give an effect to a target without having to attack them. At the moment, it is limited and can only target yourself, but will be expanded in the future.
Contents
XML
<skill>
<type value="cast-spell" />
<name value="eat_spinach_skill" />
<ep-cost value="20" />
<speed value="20" />
<anim-speed value="200" />
<animation path="models/swordman_standing.g3d" />
<sound enabled="false" />
<effects>
<effect name="popeye_strength" bias="beneficial" stacking="overwrite" duration="30">
<multipliers>
<attack-strength value="2.0" />
<attack-speed value="1.5" />
</multipliers>
</effect>
</effects>
</skill>
<command>
<type value="cast-spell"/>
<name value="eat_spinach"/>
<image path="../../upgrades/spinach/spinach.bmp"/>
<unit-requirements/>
<upgrade-requirements/>
<affect value="self" />
<cast-spell-skill value="eat_spinach_skill"/>
</command>
Elements
Most elements are standard effect or command elements, with the exception of the affect element.
affect
Defines who the cast spell command can be used against. At the moment, it cannot target other units and "self" is the only valid value, but it will be expanded in the future.