Show
Ignore:
Timestamp:
11/19/08 13:41:55 (17 years ago)
Author:
yumileroy
Message:

[svn] Fix 146_world.sql. Do not use default for text. (Ignore this if you have successfully applied 146_world.sql)
Fix HandleAuraModIncreaseHealth?, also increase current health.
Merge from Mangos:
2008-11-02 10:53:27 854e0d64e3410b2a1eff6d56705f8e42b4291534 Do not split self caused damage.
(PART) 2008-10-31 12:45:22 e56b671979623570acd358a9b99aa169be22ffba Move tamed pet creating code to new function.

Original author: megamage
Date: 2008-11-04 09:23:06-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Creature.cpp

    r136 r161  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
    1919 */ 
    2020 
     
    122122m_lootMoney(0), m_lootRecipient(0), 
    123123m_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), 
     124m_gossipOptionLoaded(false), m_emoteState(0), m_isPet(false), m_isTotem(false), 
    125125m_regenTimer(2000), m_defaultMovementType(IDLE_MOTION_TYPE), m_equipmentId(0), 
    126126m_AlreadyCallAssistence(false), m_regenHealth(true), m_AI_locked(false), m_isDeadByDefault(false), 
     
    574574 
    575575    TrainerSpellData const* trainer_spells = GetTrainerSpells(); 
    576  
    577576 
    578577    if(!trainer_spells || trainer_spells->spellList.empty()) 
     
    835834    uint32 zoneid=GetZoneId(); 
    836835    uint64 guid=GetGUID(); 
     836 
    837837    GossipOption const *gossip=GetGossipOption( action ); 
    838838    uint32 textid; 
     
    852852        case GOSSIP_OPTION_GOSSIP: 
    853853            player->PlayerTalkClass->CloseGossip(); 
    854             player->PlayerTalkClass->SendTalking( textid ); 
     854            player->PlayerTalkClass->SendTalking(textid); 
    855855            break; 
    856856        case GOSSIP_OPTION_OUTDOORPVP: 
     
    858858            break; 
    859859        case GOSSIP_OPTION_SPIRITHEALER: 
    860             if( player->isDead() ) 
     860            if (player->isDead()) 
    861861                CastSpell(this,17251,true,NULL,NULL,player->GetGUID()); 
    862862            break; 
     
    13941394        if (force) 
    13951395        { 
    1396             for (uint8 i=0;i<3;i++) 
     1396            for (uint8 i = 0; i < 3; i++) 
    13971397            { 
    13981398                SetUInt32Value( UNIT_VIRTUAL_ITEM_SLOT_DISPLAY + i, 0); 
     
    14101410 
    14111411    m_equipmentId = equip_entry; 
    1412     for (uint8 i=0;i<3;i++) 
     1412    for (uint8 i = 0; i < 3; i++) 
    14131413    { 
    14141414        SetUInt32Value( UNIT_VIRTUAL_ITEM_SLOT_DISPLAY + i, einfo->equipmodel[i]); 
     
    20232023} 
    20242024 
    2025  
    20262025VendorItemData const* Creature::GetVendorItems() const 
    20272026{ 
     
    20532052        if((vCount->count + diff * pProto->BuyCount) >= vItem->maxcount ) 
    20542053        { 
    2055             m_vendorItemCounts.erase(itr);         
     2054            m_vendorItemCounts.erase(itr); 
    20562055            return vItem->maxcount; 
    20572056        }