("Ep cost, Hp cost, and Resource cost ?")
Ex : Arrows (archers)
Cost about 1 wood, when enough, the units will attack, otherwise the units will stop and wait... for available resources before continue attack.
And an another case is military faction.
Unlimited bullets ? Unlimited missiles ? Unlimited rockets ? Unlimited grenades ? All weapons & alamos cost nothing, right ?
-> The battles will more real if this function works. It can look like as <resource-requirements/> tab.