| 2858 | } |
| 2859 | |
| 2860 | void GameMap::clearSpells() |
| 2861 | { |
| 2862 | // We need to work on a copy of mSpells because removeFromGameMap will remove them from this vector |
| 2863 | std::vector<Spell*> spells = mSpells; |
| 2864 | for (Spell* spell : spells) |
| 2865 | { |
| 2866 | spell->removeFromGameMap(); |
| 2867 | spell->deleteYourself(); |
| 2868 | } |
| 2869 | |
| 2870 | mSpells.clear(); |
| 2871 | } |
| 2872 | |
| 2873 | std::vector<Spell*> GameMap::getSpellsBySeatAndType(Seat* seat, SpellType type) const |
| 2874 | { |
nothing calls this directly
no test coverage detected