Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: Scared monsters
Hi,
There are problems with monsters hitting themselves with fear spells.
For example, a Jessy wasn't casting spells most of the time. He has
"randomitems big_wizard" which includes ability_fear, therefore casting
non-magical fear spells, and he is only immune to magic, not to fear.
One possible fix is to create a new ability_fearspells.
Another solution is to change hit_player() to make it impossible that
monsters hit themselves (if the victim is the hitter's owner or
identical to the hitter, and the victim is not a player, just don't do
anything).
There are also two places in server/spell_effect.c that set FLAG_SCARED
when a monster casts a spell like "create fire wall". Maybe setting
FLAG_RUN_AWAY would be better.
--
Jan
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]