… | |
… | |
1688 | break; |
1688 | break; |
1689 | |
1689 | |
1690 | case SP_MAGIC_MISSILE: |
1690 | case SP_MAGIC_MISSILE: |
1691 | if (QUERY_FLAG (victim, FLAG_ALIVE)) |
1691 | if (QUERY_FLAG (victim, FLAG_ALIVE)) |
1692 | { |
1692 | { |
1693 | tag_t spell_tag = spell->count; |
|
|
1694 | |
|
|
1695 | hit_player (victim, spell->stats.dam, spell, spell->attacktype, 1); |
1693 | hit_player (victim, spell->stats.dam, spell, spell->attacktype, 1); |
1696 | if (!was_destroyed (spell, spell_tag)) |
1694 | |
|
|
1695 | if (!spell->destroyed ()) |
1697 | { |
1696 | { |
1698 | remove_ob (spell); |
1697 | remove_ob (spell); |
1699 | free_object (spell); |
1698 | free_object (spell); |
1700 | } |
1699 | } |
1701 | } |
1700 | } |