mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
Update Death Grip
* Added another check to Death grip to ignore some boss ids, as need for some faction champions in argent crusade. closes #982
This commit is contained in:
@@ -1559,6 +1559,49 @@ class spell_dk_death_grip : public SpellScriptLoader
|
||||
return SPELL_CAST_OK;
|
||||
}
|
||||
|
||||
uint32 EntryCheck(uint32 entry)
|
||||
{
|
||||
Creature* targetCreature = GetHitCreature();
|
||||
|
||||
switch (entry = targetCreature->GetEntry())
|
||||
{
|
||||
//Alliance Faction Champions
|
||||
case 34461:
|
||||
case 34460:
|
||||
case 34469:
|
||||
case 34467:
|
||||
case 34468:
|
||||
case 34465:
|
||||
case 34471:
|
||||
case 34466:
|
||||
case 34473:
|
||||
case 34472:
|
||||
case 34470:
|
||||
case 34463:
|
||||
case 34474:
|
||||
case 34475:
|
||||
|
||||
//Horde Faction Champions
|
||||
case 34458:
|
||||
case 34451:
|
||||
case 34459:
|
||||
case 34448:
|
||||
case 34449:
|
||||
case 34445:
|
||||
case 34456:
|
||||
case 34447:
|
||||
case 34441:
|
||||
case 34454:
|
||||
case 34444:
|
||||
case 34455:
|
||||
case 34450:
|
||||
case 34453:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void HandleBaseDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
@@ -1568,7 +1611,7 @@ class spell_dk_death_grip : public SpellScriptLoader
|
||||
|
||||
if (caster != target)
|
||||
{
|
||||
if (targetCreature && (targetCreature->isWorldBoss() || targetCreature->IsDungeonBoss()))
|
||||
if (targetCreature && (targetCreature->isWorldBoss() || targetCreature->IsDungeonBoss()) && targetCreature->GetEntry() != EntryCheck(targetCreature->GetEntry()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user