Bewachen von Untoten (Skelette, Skelettherren, Dämonen)

Einheiten mit Talent Waffenloser Kampf können Regionen bewachen.
This commit is contained in:
Enno Rehling 2005-06-28 21:15:42 +00:00
parent fb3967bca6
commit 1bb5deb8b9
2 changed files with 2 additions and 1 deletions

View file

@ -239,7 +239,7 @@ armedmen(const unit * u)
item * itm;
int n = 0;
if (!(urace(u)->flags & RCF_NOWEAPONS)) {
if (urace(u)->ec_flags & CANGUARD) {
if ((urace(u)->ec_flags & CANGUARD) || effskill(u, SK_WEAPONLESS)>=1) {
/* kann ohne waffen bewachen: fuer untote und drachen */
n = u->number;
} else {

View file

@ -713,6 +713,7 @@
<race name="illusion" magres="0.000000" maxaura="0.000000" regaura="0.000000" recruitcost="50" weight="0" capacity="0" speed="1.000000" hp="1" damage="1d1" unarmedattack="0" unarmeddefense="0" walk="yes" nolearn="yes" teach="no" noweapons="yes" illusionary="yes">
<ai splitsize="999999"/>
<function name="age" value="ageillusion"/>
<skill name="sk_unarmed" modifier="-99"/>
<attack type="1" damage="1d1"/>
</race>
<race name="undead" magres="0.000000" maxaura="1.000000" regaura="1.000000" recruitcost="2" weight="1000" capacity="540" speed="1.000000" hp="20" damage="1d7" unarmedattack="0" unarmeddefense="0" attackmodifier="1" defensemodifier="1" scarepeasants="yes" walk="yes" nolearn="yes" teach="no" noheal="yes" undead="yes" canguard="yes" equipment="yes">