SHOW:
|
|
- or go back to the newest paste.
| 1 | // Dancing Rune Weapon | |
| 2 | if (dummySpell->Id == 49028) | |
| 3 | {
| |
| 4 | // 1 dummy aura for dismiss rune blade | |
| 5 | ||
| 6 | if (effIndex!=1) | |
| 7 | return false; | |
| 8 | ||
| 9 | ||
| 10 | Unit* pPet = NULL; | |
| 11 | for (ControlList::const_iterator itr = m_Controlled.begin(); itr != m_Controlled.end(); ++itr) //Find Rune Weapon | |
| 12 | if ((*itr)->GetEntry() == 27893) | |
| 13 | {
| |
| 14 | pPet = (*itr); | |
| 15 | break; | |
| 16 | } | |
| 17 | ||
| 18 | ||
| 19 | if (pPet && pPet->getVictim() && damage && procSpell) | |
| 20 | {
| |
| 21 | // uint32 procDmg = damage / 2; à retirer car fait plus que diviser les dégats par 2 | |
| 22 | pPet->SendSpellNonMeleeDamageLog(pPet->getVictim(),procSpell->Id,damage,GetSpellSchoolMask(procSpell),0,0,false,0,false); | |
| 23 | pPet->DealDamage(pPet->getVictim(),damage,NULL,SPELL_DIRECT_DAMAGE,GetSpellSchoolMask(procSpell),procSpell,true); | |
| 24 | ||
| 25 | break; | |
| 26 | } | |
| 27 | else | |
| 28 | return false; | |
| 29 | } | |
| 30 | // Mark of Blood |