Changeset 257 for trunk/src/game/NPCHandler.cpp
- Timestamp:
- 11/19/08 13:51:33 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/NPCHandler.cpp
r230 r257 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 … … 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 343 342 if (!Script->GossipSelectWithCode(_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction( option ), code.c_str())) 344 343 unit->OnGossipSelect (_player, option); 345 344 } 346 345 else 347 348 346 { 349 347 if (!Script->GossipSelect (_player, unit, _player->PlayerTalkClass->GossipOptionSender (option), _player->PlayerTalkClass->GossipOptionAction (option))) 350 348 unit->OnGossipSelect (_player, option); 351 349 } 352 350 } … … 378 376 void WorldSession::SendSpiritResurrect() 379 377 { 380 _player->ResurrectPlayer(0.5f, false,true);378 _player->ResurrectPlayer(0.5f, true); 381 379 382 380 _player->DurabilityLossAll(0.25f,true);