… | |
… | |
144 | is_susceptible_to_disease (object *victim, object *disease) |
144 | is_susceptible_to_disease (object *victim, object *disease) |
145 | { |
145 | { |
146 | if (!QUERY_FLAG (victim, FLAG_ALIVE)) |
146 | if (!QUERY_FLAG (victim, FLAG_ALIVE)) |
147 | return 0; |
147 | return 0; |
148 | |
148 | |
|
|
149 | if (victim->flag [FLAG_WIZ]) |
|
|
150 | return 0; |
|
|
151 | |
149 | if (strstr (disease->race, "*") && !QUERY_FLAG (victim, FLAG_UNDEAD)) |
152 | if (strstr (disease->race, "*") && !QUERY_FLAG (victim, FLAG_UNDEAD)) |
150 | return 1; |
153 | return 1; |
151 | |
154 | |
152 | if ((disease->race == shstr_undead) && QUERY_FLAG (victim, FLAG_UNDEAD)) |
155 | if ((disease->race == shstr_undead) && QUERY_FLAG (victim, FLAG_UNDEAD)) |
153 | return 1; |
156 | return 1; |