1 | /* |
1 | /* |
2 | * static char *rcsid_spell_util_c = |
2 | * static char *rcsid_spell_util_c = |
3 | * "$Id: spell_util.C,v 1.4 2006/08/25 17:11:53 root Exp $"; |
3 | * "$Id: spell_util.C,v 1.5 2006/08/27 13:02:04 root 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 |
… | |
… | |
1441 | |
1441 | |
1442 | case SP_PARTY_SPELL: |
1442 | case SP_PARTY_SPELL: |
1443 | success = cast_party_spell (op, caster, dir, spell_ob, stringarg); |
1443 | success = cast_party_spell (op, caster, dir, spell_ob, stringarg); |
1444 | break; |
1444 | break; |
1445 | |
1445 | |
1446 | case SP_PERL: |
|
|
1447 | INVOKE_OBJECT (CAST_SPELL, op, ARG_OBJECT (caster), ARG_OBJECT (spell_ob), ARG_STRING (stringarg)); |
|
|
1448 | break; |
|
|
1449 | |
|
|
1450 | default: |
1446 | default: |
|
|
1447 | if (!INVOKE_OBJECT (CAST_SPELL, op, ARG_OBJECT (caster), ARG_OBJECT (spell_ob), ARG_STRING (stringarg))) |
1451 | LOG(llevError,"cast_spell: Unhandled spell subtype %d\n", |
1448 | LOG (llevError,"cast_spell: Unhandled spell subtype %d\n", |
1452 | spell_ob->subtype); |
1449 | spell_ob->subtype); |
1453 | |
1450 | |
1454 | |
1451 | |
1455 | } |
1452 | } |
1456 | |
1453 | |
1457 | /* FIXME - we need some better sound suppport */ |
1454 | /* FIXME - we need some better sound suppport */ |