Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 85600: // Toss Torch
- {
- std::list<Creature*> pyrewood;
- m_caster->GetCreatureListWithEntryInGrid(pyrewood, 45937, 25.0f);
- m_caster->GetCreatureListWithEntryInGrid(pyrewood, 45938, 25.0f);
- m_caster->GetCreatureListWithEntryInGrid(pyrewood, 45939, 25.0f);
- pyrewood.sort(Trinity::ObjectDistanceOrderPred(m_caster));
- for(std::list<Creature*>::iterator itr = pyrewood.begin(); itr != pyrewood.end(); itr++)
- {
- if((*itr)->isAlive())
- {
- m_caster->ToPlayer()->KilledMonsterCredit((*itr)->GetEntry(), 0);
- }
- }
- return;
- }
Add Comment
Please, Sign In to add comment