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/03/13 23:59:29 root Exp $"; |
3 | * "$Id: spell_util.c,v 1.5 2006/03/14 17:59:22 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 |
… | |
… | |
473 | * limits one spell effect per space per spell. This is definately |
473 | * limits one spell effect per space per spell. This is definately |
474 | * needed for performance reasons, and just for playability I believe. |
474 | * needed for performance reasons, and just for playability I believe. |
475 | * there are no such things as multispaced spells right now, so |
475 | * there are no such things as multispaced spells right now, so |
476 | * we don't need to worry about the head. |
476 | * we don't need to worry about the head. |
477 | */ |
477 | */ |
478 | if (tmp->stats.maxhp == op->stats.maxhp |
478 | if ((tmp->stats.maxhp == op->stats.maxhp) && (tmp->type == op->type) && |
479 | && tmp->type == op->type |
|
|
480 | && tmp->subtype == op->subtype) |
479 | (tmp->subtype == op->subtype)) |
481 | return 0; |
480 | return 0; |
482 | |
481 | |
483 | /* |
482 | /* |
484 | * Combine similar spell effects into one spell effect. Needed for |
483 | * Combine similar spell effects into one spell effect. Needed for |
485 | * performance reasons with meteor swarm and the like, but also for |
484 | * performance reasons with meteor swarm and the like, but also for |