Changeset 272 for trunk/src/game/NPCHandler.cpp
- Timestamp:
- 11/22/08 00:35:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/NPCHandler.cpp
r257 r272 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. 13 * 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 … … 223 223 TrainerSpellData const* trainer_spells = unit->GetTrainerSpells(); 224 224 if(!trainer_spells) 225 return; 225 return; 226 226 227 227 // not found, cheat? … … 340 340 if(!code.empty()) 341 341 { 342 342 343 if (!Script->GossipSelectWithCode(_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction( option ), code.c_str())) 343 344 unit->OnGossipSelect (_player, option); 344 345 } 345 346 else 347 346 348 { 347 349 if (!Script->GossipSelect (_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction (option))) 348 unit->OnGossipSelect (_player, option);350 unit->OnGossipSelect (_player, option); 349 351 } 350 352 } … … 376 378 void WorldSession::SendSpiritResurrect() 377 379 { 378 _player->ResurrectPlayer(0.5f, true);380 _player->ResurrectPlayer(0.5f,false, true); 379 381 380 382 _player->DurabilityLossAll(0.25f,true);