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