Bugfix überhöhte Magieresistenz

This commit is contained in:
Enno Rehling 2004-02-15 23:15:14 +00:00
parent 20f2546690
commit fd8827b7a5
1 changed files with 2 additions and 2 deletions

View File

@ -1192,7 +1192,7 @@ magic_resistance(unit *target)
double probability = target->race->magres;
/* Magier haben einen Resistenzbonus vom Magietalent * 5%*/
probability += effskill(target, SK_MAGIC)*0.5;
probability += effskill(target, SK_MAGIC)*0.05;
/* Auswirkungen von Zaubern auf der Einheit */
c = get_curse(target->attribs, ct_find("magicresistance"));
@ -1237,7 +1237,7 @@ magic_resistance(unit *target)
/* gesegneter Steinkreis gibt 30% dazu */
if (btype) probability += btype->magresbonus * 0.01;
}
return (int)(probability*100);
return probability;
}
/* ------------------------------------------------------------- */