… | |
… | |
823 | if (hitdam <= 0) |
823 | if (hitdam <= 0) |
824 | hitdam = 1; |
824 | hitdam = 1; |
825 | |
825 | |
826 | type = hitter->attacktype; |
826 | type = hitter->attacktype; |
827 | |
827 | |
|
|
828 | /* Ok, because some of the brainfucks of the good *sigh* old *sigh* |
|
|
829 | * Crossfire we have to default the attacktype here to AT_PHYSICAL. |
|
|
830 | * This check is important for the most simple monsters out there in the |
|
|
831 | * game content (maps, archs). For example orcs: They would have |
|
|
832 | * no attacktype at all. |
|
|
833 | * |
|
|
834 | * Some time in the future someone should just go into the game data |
|
|
835 | * and fix every monster out there ;-/ Until then we will kill some |
|
|
836 | * more trees in the african rain forests with this check. |
|
|
837 | */ |
828 | if (!type) |
838 | if (!type) |
829 | type = AT_PHYSICAL; |
839 | type = AT_PHYSICAL; |
830 | |
840 | |
831 | /* Handle monsters that hit back */ |
841 | /* Handle monsters that hit back */ |
832 | if (!simple_attack && QUERY_FLAG (op, FLAG_HITBACK) && QUERY_FLAG (hitter, FLAG_ALIVE)) |
842 | if (!simple_attack && QUERY_FLAG (op, FLAG_HITBACK) && QUERY_FLAG (hitter, FLAG_ALIVE)) |