Skip to content

Commit

Permalink
Spell: Knockbacks can safely remove -100 and spell 10101 should be -100
Browse files Browse the repository at this point in the history
-101 removes whole ref
  • Loading branch information
killerwife committed Aug 22, 2021
1 parent df68ab4 commit 6b148ad
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/game/Entities/GameObject.cpp
Expand Up @@ -873,14 +873,10 @@ bool GameObject::LoadFromDB(uint32 dbGuid, Map* map, uint32 newGuid, GenericTran

m_dbGuid = dbGuid;

<<<<<<< HEAD
if (!Create(newGuid, entry, map, phaseMask, x, y, z, ang, data->rotation, animprogress, go_state))
=======
if (uint32 randomEntry = sObjectMgr.GetRandomGameObjectEntry(GetDbGuid()))
entry = randomEntry;

if (!Create(newGuid, entry, map, x, y, z, ang, rotation0, rotation1, rotation2, rotation3, animprogress, go_state))
>>>>>>> 2197d1752a3... [s2432] DynGuid: Implement gameobject_spawn_entry
if (!Create(newGuid, entry, map, phaseMask, x, y, z, ang, data->rotation, animprogress, go_state))
return false;

if (!GetGOInfo()->GetDespawnPossibility() && !GetGOInfo()->IsDespawnAtAction() && data->spawntimesecsmin >= 0)
Expand Down

0 comments on commit 6b148ad

Please sign in to comment.