saroumana
01-20-2010, 11:40 AM
Hello,
I'm trying to change the attribute of some units but i'm facing a problem, i don't know where the unit's ability are stored.
I mean the passive ability, they are called features in unit's card.
One example for footman : features=armor,humanoid,care
But i can't find where care is defined
After some researches, i found an interesting function :
function features_evasion(damage,addrage,attacker,receiver, minmax)
if minmax == 0 then
if not Attack.act_is_spell(receiver, "feat_evasion") then Attack.act_posthitmaster(receiver, "feat_evasion",0) end
end
return damage,addrage
end
anyway they're no feat_evasion in this snippet.
Does anyone know where they do store the unit's feature ?:)
I'm trying to change the attribute of some units but i'm facing a problem, i don't know where the unit's ability are stored.
I mean the passive ability, they are called features in unit's card.
One example for footman : features=armor,humanoid,care
But i can't find where care is defined
After some researches, i found an interesting function :
function features_evasion(damage,addrage,attacker,receiver, minmax)
if minmax == 0 then
if not Attack.act_is_spell(receiver, "feat_evasion") then Attack.act_posthitmaster(receiver, "feat_evasion",0) end
end
return damage,addrage
end
anyway they're no feat_evasion in this snippet.
Does anyone know where they do store the unit's feature ?:)