Guest User

Untitled

a guest
Jun 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. case 85600: // Toss Torch
  2. {
  3. std::list<Creature*> pyrewood;
  4. m_caster->GetCreatureListWithEntryInGrid(pyrewood, 45937, 25.0f);
  5. m_caster->GetCreatureListWithEntryInGrid(pyrewood, 45938, 25.0f);
  6. m_caster->GetCreatureListWithEntryInGrid(pyrewood, 45939, 25.0f);
  7.  
  8. pyrewood.sort(Trinity::ObjectDistanceOrderPred(m_caster));
  9. for(std::list<Creature*>::iterator itr = pyrewood.begin(); itr != pyrewood.end(); itr++)
  10. {
  11. if((*itr)->isAlive())
  12. {
  13. m_caster->ToPlayer()->KilledMonsterCredit((*itr)->GetEntry(), 0);
  14. }
  15.  
  16. }
  17. return;
  18. }
Add Comment
Please, Sign In to add comment