[svn] Add Unit::GetObjectInWorld function to get object by guid without providing reference.

Small change in SummonGameObject.
Fix a bug that player can not click summoned najentus spine (must let target summon gameobject).

--HG--
branch : trunk
This commit is contained in:
megamage
2008-10-18 19:59:34 -05:00
parent da17b0fd41
commit e4b701caba
3 changed files with 10 additions and 3 deletions

View File

@@ -216,7 +216,8 @@ struct TRINITY_DLL_DECL boss_najentusAI : public ScriptedAI
m_creature->CastSpell(target, SPELL_IMPALING_SPINE, true);
m_creature->SetInFront(m_creature->getVictim());
SpineTargetGUID = target->GetGUID();
m_creature->SummonGameObject(GOBJECT_SPINE, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), m_creature->GetOrientation(), 0, 0, 0, 0, 30);
//must let target summon, otherwise you cannot click the spine
target->SummonGameObject(GOBJECT_SPINE, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), m_creature->GetOrientation(), 0, 0, 0, 0, 30);
switch(rand()%2)
{