[8576] Implement spells 51689 and 51680

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Shendor 2009-10-01 17:40:07 +03:00 committed by Ambal
parent 0cbb181479
commit 4041121fd8
2 changed files with 21 additions and 3 deletions

View file

@ -7023,8 +7023,12 @@ void Aura::PeriodicDummyTick()
{
switch (spell->Id)
{
// Killing Spree
case 51690:
{
if (caster->hasUnitState(UNIT_STAT_STUNNED) || caster->HasAuraType(SPELL_AURA_MOD_FEAR))
return;
std::list<Unit*> targets;
{
// eff_radius ==0
@ -7057,15 +7061,29 @@ void Aura::PeriodicDummyTick()
caster->CastSpell(target, 57841, true);
return;
}
// Master of Subtlety
// case 31666: break;
// Killing Spree
// case 51690: break;
// Overkill
// case 58428: break;
// default:
// break;
}
// Prey on the Weak
if (spell->SpellIconID == 2983)
{
Unit *target=caster->getVictim();
if (target && (caster->GetHealth() * 100 / caster->GetMaxHealth() > target->GetHealth() * 100 / target->GetMaxHealth()))
{
if(!caster->HasAura(58670))
{
int32 basepoints = GetBasePoints();
caster->CastCustomSpell(caster, 58670, &basepoints, 0, 0, true);
}
}
else
caster->RemoveAurasDueToSpell(58670);
}
break;
}
case SPELLFAMILY_HUNTER:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8575"
#define REVISION_NR "8576"
#endif // __REVISION_NR_H__