Changeset 81 for trunk/src/game/Object.cpp
- Timestamp:
- 11/19/08 13:32:32 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Object.cpp
r58 r81 595 595 *data << (m_uint32Values[ index ] & ~UNIT_FLAG_NOT_SELECTABLE); 596 596 } 597 // use modelid_a if not gm, _h if gm for CREATURE_FLAG_EXTRA_TRIGGER creatures 598 else if(index == UNIT_FIELD_DISPLAYID && GetTypeId() == TYPEID_UNIT) 599 { 600 const CreatureInfo* cinfo = ((Creature*)this)->GetCreatureInfo(); 601 if(cinfo->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER) 602 { 603 if(target->isGameMaster()) 604 *data << cinfo->DisplayID_A; 605 else 606 *data << cinfo->DisplayID_H; 607 } 608 else 609 *data << m_uint32Values[ index ]; 610 } 597 611 // hide lootable animation for unallowed players 598 612 else if(index == UNIT_DYNAMIC_FLAGS && GetTypeId() == TYPEID_UNIT)