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

*Merge from Mangos. Add MapReference?. Author: hunuza.
*Also re-commit the patches reverted in 255.

Original author: megamage
Date: 2008-11-18 19:40:06-06:00

Files:
1 modified

Legend:

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

    r230 r257  
    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 
     
    223223    TrainerSpellData const* trainer_spells = unit->GetTrainerSpells(); 
    224224    if(!trainer_spells) 
    225         return;  
     225        return; 
    226226 
    227227    // not found, cheat? 
     
    340340    if(!code.empty()) 
    341341    { 
    342  
    343342        if (!Script->GossipSelectWithCode(_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction( option ), code.c_str())) 
    344343            unit->OnGossipSelect (_player, option); 
    345344    } 
    346345    else 
    347  
    348346    { 
    349347        if (!Script->GossipSelect (_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction (option))) 
    350             unit->OnGossipSelect (_player, option); 
     348           unit->OnGossipSelect (_player, option); 
    351349    } 
    352350} 
     
    378376void WorldSession::SendSpiritResurrect() 
    379377{ 
    380     _player->ResurrectPlayer(0.5f,false, true); 
     378    _player->ResurrectPlayer(0.5f, true); 
    381379 
    382380    _player->DurabilityLossAll(0.25f,true);