[6876] * Not drop charge for 1120 and ranks (fix SPELL_AURA_CHANNEL_DEATH_ITEM aura work)

This commit is contained in:
DiSlord 2008-12-06 04:38:31 +03:00
parent 2907868b80
commit 223fe7321f
2 changed files with 5 additions and 8 deletions

View file

@ -5974,17 +5974,14 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
{ {
int32 value2 = CalculateSpellDamage((*i)->GetSpellProto(),2,(*i)->GetSpellProto()->EffectBasePoints[2],this); int32 value2 = CalculateSpellDamage((*i)->GetSpellProto(),2,(*i)->GetSpellProto()->EffectBasePoints[2],this);
basepoints0 = value2 * GetMaxPower(POWER_MANA) / 100; basepoints0 = value2 * GetMaxPower(POWER_MANA) / 100;
// Drain Soul // Drain Soul
triggered_spell_id = 18371; CastCustomSpell(this, 18371, &basepoints0, NULL, NULL, true, castItem, triggeredByAura);
target = this;
found = true;
break; break;
} }
} }
if(!found) // Not remove charge (aura removed on death in any cases)
return false; // Need for correct work Drain Soul SPELL_AURA_CHANNEL_DEATH_ITEM aura
break; // fall through to normal cast return false;
} }
break; break;
} }

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "6875" #define REVISION_NR "6876"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__