… | |
… | |
1605 | { |
1605 | { |
1606 | changed = true; |
1606 | changed = true; |
1607 | |
1607 | |
1608 | op->level++; |
1608 | op->level++; |
1609 | |
1609 | |
1610 | if (op && op == who && op->stats.exp > 1 && is_dragon_pl (who)) |
1610 | if (op && op == who && op->stats.exp > 1 && who->is_dragon ()) |
1611 | dragon_level_gain (who); |
1611 | dragon_level_gain (who); |
1612 | |
1612 | |
1613 | /* Only roll these if it is the player (who) that gained the level */ |
1613 | /* Only roll these if it is the player (who) that gained the level */ |
1614 | if (op == who && (who->level < 11) && who->type == PLAYER) |
1614 | if (op == who && (who->level < 11) && who->type == PLAYER) |
1615 | { |
1615 | { |