… | |
… | |
737 | } |
737 | } |
738 | #endif |
738 | #endif |
739 | |
739 | |
740 | hit_map (op, 0, op->attacktype, 0); |
740 | hit_map (op, 0, op->attacktype, 0); |
741 | |
741 | |
|
|
742 | if (!op->is_on_map ()) |
|
|
743 | return; |
|
|
744 | |
742 | /* Check to see if we should push anything. |
745 | /* Check to see if we should push anything. |
743 | * Spell objects with weight push whatever they encounter to some |
746 | * Spell objects with weight push whatever they encounter to some |
744 | * degree. |
747 | * degree. |
745 | */ |
748 | */ |
746 | if (op->weight) |
749 | if (op->weight) |
|
|
750 | { |
747 | check_spell_knockback (op); |
751 | check_spell_knockback (op); |
748 | |
752 | |
749 | if (op->destroyed ()) |
753 | if (!op->is_on_map ()) |
750 | return; |
754 | return; |
|
|
755 | } |
751 | |
756 | |
752 | if (op->duration-- < 0) |
757 | if (op->duration-- < 0) |
753 | { |
758 | { |
754 | op->destroy (); |
759 | op->destroy (); |
755 | return; |
760 | return; |