version 1.16 | | version 1.17 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.16 2004/08/14 09:48:40 ryo_saeba Exp $"; | | * "$Id: spell_attack.c,v 1.17 2005/01/07 21:23:59 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
/* charm */ | | /* charm */ |
if (QUERY_FLAG(spell, FLAG_NO_ATTACK) && !QUERY_FLAG(head, FLAG_FRIENDLY)) { | | if (QUERY_FLAG(spell, FLAG_NO_ATTACK) && !QUERY_FLAG(head, FLAG_FRIENDLY)) { |
SET_FLAG(head, FLAG_FRIENDLY); | | SET_FLAG(head, FLAG_FRIENDLY); |
| | /* Prevent uncontolled outbreaks of self replicating monsters. |
| | Typical use case is charm, go somwhere, use aggravation to make hostile. |
| | This could lead to fun stuff like mice outbreak in bigworld and server crawl. */ |
| | CLEAR_FLAG(head, FLAG_GENERATOR); |
set_owner(head, op); | | set_owner(head, op); |
set_spell_skill(op, caster, spell, head); | | set_spell_skill(op, caster, spell, head); |
add_friendly_object(head); | | add_friendly_object(head); |