1 | /* |
1 | /* |
2 | * static char *rcsid_spell_effect_c = |
2 | * static char *rcsid_spell_effect_c = |
3 | * "$Id: spell_effect.c,v 1.8 2006/05/12 13:32:35 root Exp $"; |
3 | * "$Id: spell_effect.c,v 1.9 2006/05/18 15:20:42 pippijn Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
… | |
… | |
890 | { |
890 | { |
891 | new_draw_info(NDI_UNIQUE | NDI_NAVY, 0,op,"You can't cast that here.\n"); |
891 | new_draw_info(NDI_UNIQUE | NDI_NAVY, 0,op,"You can't cast that here.\n"); |
892 | return 0; |
892 | return 0; |
893 | } |
893 | } |
894 | |
894 | |
|
|
895 | /* Check to see if the player is on a transport */ |
|
|
896 | if (op->contr && op->contr->transport) { |
|
|
897 | new_draw_info(NDI_UNIQUE | NDI_NAVY, 0,op,"You need to exit the transport to cast that.\n"); |
|
|
898 | return 0; |
|
|
899 | } |
|
|
900 | |
895 | /* The first thing to do is to check if we have a marked destination |
901 | /* The first thing to do is to check if we have a marked destination |
896 | * dummy is used to make a check inventory for the force |
902 | * dummy is used to make a check inventory for the force |
897 | */ |
903 | */ |
898 | dummy=arch_to_object(spell->other_arch); |
904 | dummy=arch_to_object(spell->other_arch); |
899 | if(dummy == NULL){ |
905 | if(dummy == NULL){ |