void TemporarySpawn::RemoveAuraFromOwner() { if (uint32 spellid = GetUInt32Value(UNIT_CREATED_BY_SPELL)) { if (Unit* spawner = GetSpawner()) spawner->RemoveAurasDueToSpell(spellid); } }
bool TemporarySpawn::CheckAuraOnOwner() { if (uint32 spellId = GetUInt32Value(UNIT_CREATED_BY_SPELL)) { if (Unit* spawner = GetSpawner()) return spawner->HasAura(spellId); } return false; }
bool MapSystem::Spawn(const std::string& name, Entity& spawned) const { Spawner* spawner; if(!GetSpawner(name, spawner)) { return false; } return spawner->Spawn(spawned); }