… | |
… | |
438 | /* |
438 | /* |
439 | * Combine similar spell effects into one spell effect. Needed for |
439 | * Combine similar spell effects into one spell effect. Needed for |
440 | * performance reasons with meteor swarm and the like, but also for |
440 | * performance reasons with meteor swarm and the like, but also for |
441 | * playability reasons. |
441 | * playability reasons. |
442 | */ |
442 | */ |
443 | if (tmp->arch == op->arch |
443 | if (tmp->arch == op->arch /* no harm if not comparing by name here */ |
444 | && tmp->type == op->type |
444 | && tmp->type == op->type |
445 | && tmp->subtype == op->subtype |
445 | && tmp->subtype == op->subtype |
446 | && tmp->owner == op->owner |
446 | && tmp->owner == op->owner |
447 | && ((tmp->subtype == SP_EXPLOSION) || (tmp->subtype == SP_CONE && tmp->stats.sp == op->stats.sp))) |
447 | && ((tmp->subtype == SP_EXPLOSION) || (tmp->subtype == SP_CONE && tmp->stats.sp == op->stats.sp))) |
448 | { |
448 | { |