1 | /* |
1 | /* |
2 | * static char *rcsid_spell_util_c = |
2 | * static char *rcsid_spell_util_c = |
3 | * "$Id: spell_util.C,v 1.3 2006/08/15 17:35:51 elmex Exp $"; |
3 | * "$Id: spell_util.C,v 1.4 2006/08/25 17:11:53 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 |
… | |
… | |
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: |
1446 | case SP_PERL: |
1447 | execute_global_event(EVENT_CAST_SPELL, op, caster, spell_ob, dir, stringarg ? stringarg : ""); |
1447 | INVOKE_OBJECT (CAST_SPELL, op, ARG_OBJECT (caster), ARG_OBJECT (spell_ob), ARG_STRING (stringarg)); |
1448 | break; |
1448 | break; |
1449 | |
1449 | |
1450 | default: |
1450 | default: |
1451 | LOG(llevError,"cast_spell: Unhandled spell subtype %d\n", |
1451 | LOG(llevError,"cast_spell: Unhandled spell subtype %d\n", |
1452 | spell_ob->subtype); |
1452 | spell_ob->subtype); |