[8320] Imporovements in wild summoned gameobjects work. Author: VladimirMangos

* Not set owner for will summoned gameobjects.
      Its not expected to have owner, and must be accessable to all players (or team).
    * Set for all objects summoned by spells: despawned by deafult for proper despawn withut owner.
    * Cleanup Spell::EffectSummonObjectWild.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-08 12:25:20 -05:00
parent f8a05d264f
commit 58dc6e180b
4 changed files with 40 additions and 33 deletions

View File

@@ -921,6 +921,7 @@ void GameObject::SetGoArtKit(uint8 kit)
data->ArtKit = kit;
}
/*
void GameObject::SetOwnerGUID(uint64 owner)
{
// Owner already found and different than expected owner - remove object from old owner
@@ -931,6 +932,7 @@ void GameObject::SetOwnerGUID(uint64 owner)
m_spawnedByDefault = false; // all object with owner is despawned after delay
SetUInt64Value(OBJECT_FIELD_CREATED_BY, owner);
}
*/
void GameObject::SwitchDoorOrButton(bool activate, bool alternative /* = false */)
{