Changeset 161 for trunk/src/game/Creature.cpp
- Timestamp:
- 11/19/08 13:41:55 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Creature.cpp
r136 r161 11 11 * This program is distributed in the hope that it will be useful, 12 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 * GNU General Public License for more details. 15 15 * 16 16 * You should have received a copy of the GNU General Public License 17 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 19 */ 20 20 … … 122 122 m_lootMoney(0), m_lootRecipient(0), 123 123 m_deathTimer(0), m_respawnTime(0), m_respawnDelay(25), m_corpseDelay(60), m_respawnradius(0.0f), 124 m_gossipOptionLoaded(false), m_emoteState(0), m_isPet(false), m_isTotem(false),124 m_gossipOptionLoaded(false), m_emoteState(0), m_isPet(false), m_isTotem(false), 125 125 m_regenTimer(2000), m_defaultMovementType(IDLE_MOTION_TYPE), m_equipmentId(0), 126 126 m_AlreadyCallAssistence(false), m_regenHealth(true), m_AI_locked(false), m_isDeadByDefault(false), … … 574 574 575 575 TrainerSpellData const* trainer_spells = GetTrainerSpells(); 576 577 576 578 577 if(!trainer_spells || trainer_spells->spellList.empty()) … … 835 834 uint32 zoneid=GetZoneId(); 836 835 uint64 guid=GetGUID(); 836 837 837 GossipOption const *gossip=GetGossipOption( action ); 838 838 uint32 textid; … … 852 852 case GOSSIP_OPTION_GOSSIP: 853 853 player->PlayerTalkClass->CloseGossip(); 854 player->PlayerTalkClass->SendTalking( textid);854 player->PlayerTalkClass->SendTalking(textid); 855 855 break; 856 856 case GOSSIP_OPTION_OUTDOORPVP: … … 858 858 break; 859 859 case GOSSIP_OPTION_SPIRITHEALER: 860 if ( player->isDead())860 if (player->isDead()) 861 861 CastSpell(this,17251,true,NULL,NULL,player->GetGUID()); 862 862 break; … … 1394 1394 if (force) 1395 1395 { 1396 for (uint8 i =0;i<3;i++)1396 for (uint8 i = 0; i < 3; i++) 1397 1397 { 1398 1398 SetUInt32Value( UNIT_VIRTUAL_ITEM_SLOT_DISPLAY + i, 0); … … 1410 1410 1411 1411 m_equipmentId = equip_entry; 1412 for (uint8 i =0;i<3;i++)1412 for (uint8 i = 0; i < 3; i++) 1413 1413 { 1414 1414 SetUInt32Value( UNIT_VIRTUAL_ITEM_SLOT_DISPLAY + i, einfo->equipmodel[i]); … … 2023 2023 } 2024 2024 2025 2026 2025 VendorItemData const* Creature::GetVendorItems() const 2027 2026 { … … 2053 2052 if((vCount->count + diff * pProto->BuyCount) >= vItem->maxcount ) 2054 2053 { 2055 m_vendorItemCounts.erase(itr); 2054 m_vendorItemCounts.erase(itr); 2056 2055 return vItem->maxcount; 2057 2056 }