[svn] Send AttackStart package when update visibility.

Update DoMeleeAttackIfReady to support dual wield.
Show player modelid2 instead id3 of triggers. This should fix the bug that gameobject::castspell summon a human model.
Remove the correct flag to make creature attackable. This should fix the bug that Illidan and Magtheridon are unattackable.
Add NullCreatureAI for trinityscript.
Fix channeler's soul transfer.
Some update of black temple scripts.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-09 14:54:13 -06:00
parent 2c83fc42fc
commit ee02a2fc84
11 changed files with 82 additions and 62 deletions

View File

@@ -601,9 +601,19 @@ void Object::_BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask
if(cinfo->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER)
{
if(target->isGameMaster())
*data << cinfo->Modelid1;
{
if(cinfo->Modelid2)
*data << cinfo->Modelid1;
else
*data << 17519; // world invisible trigger's model
}
else
*data << cinfo->Modelid3;
{
if(cinfo->Modelid2)
*data << cinfo->Modelid2;
else
*data << 11686; // world invisible trigger's model
}
}
else
*data << m_uint32Values[ index ];