mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
*Stoneclaw Totem & Glyph of Stoneclaw Totem by Themris and thenecromancer
--HG-- branch : trunk
This commit is contained in:
11
sql/updates/5654_world_creature_TDB.sql
Normal file
11
sql/updates/5654_world_creature_TDB.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
UPDATE `creature_template` SET `spell2`=55328 WHERE `entry`=3579;
|
||||
UPDATE `creature_template` SET `spell2`=55329 WHERE `entry`=3911;
|
||||
UPDATE `creature_template` SET `spell2`=55330 WHERE `entry`=3912;
|
||||
UPDATE `creature_template` SET `spell2`=55332 WHERE `entry`=3913;
|
||||
UPDATE `creature_template` SET `spell2`=55333 WHERE `entry`=7398;
|
||||
UPDATE `creature_template` SET `spell2`=55335 WHERE `entry`=7399;
|
||||
UPDATE `creature_template` SET `spell2`=55278 WHERE `entry`=15478;
|
||||
UPDATE `creature_template` SET `spell2`=58589 WHERE `entry`=31120;
|
||||
UPDATE `creature_template` SET `spell2`=58590 WHERE `entry`=31121;
|
||||
UPDATE `creature_template` SET `spell2`=58591 WHERE `entry`=31122;
|
||||
@@ -91,6 +91,39 @@ void Totem::InitSummon()
|
||||
|
||||
if(m_type == TOTEM_PASSIVE)
|
||||
CastSpell(this, GetSpell(), true);
|
||||
|
||||
// Stoneclaw Totem
|
||||
case 55328: // Rank 1
|
||||
case 55329: // Rank 2
|
||||
case 55330: // Rank 3
|
||||
case 55332: // Rank 4
|
||||
case 55333: // Rank 5
|
||||
case 55335: // Rank 6
|
||||
case 55278: // Rank 7
|
||||
case 58589: // Rank 8
|
||||
case 58590: // Rank 9
|
||||
case 58591: // Rank 10
|
||||
{
|
||||
int32 basepoints0 = damage;
|
||||
// Cast Absorb on totems
|
||||
for(uint8 slot = SUMMON_SLOT_TOTEM; slot < MAX_TOTEM_SLOT; ++slot)
|
||||
{
|
||||
if(!unitTarget->m_SummonSlot[slot])
|
||||
continue;
|
||||
|
||||
Creature* totem = unitTarget->GetMap()->GetCreature(unitTarget->m_SummonSlot[slot]);
|
||||
if(totem && totem->isTotem())
|
||||
m_caster->CastCustomSpell(totem, 55277, &basepoints0, NULL, NULL, true);
|
||||
}
|
||||
// Glyph of Stoneclaw Totem
|
||||
if (AuraEffect *aur=unitTarget->GetAuraEffect(63298, 0))
|
||||
{
|
||||
basepoints0 *= aur->GetAmount();
|
||||
m_caster->CastCustomSpell(unitTarget, 55277, &basepoints0, NULL, NULL, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// Some totems can have both instant effect and passive spell
|
||||
if (GetSpell(1))
|
||||
CastSpell(this, GetSpell(1), true);
|
||||
|
||||
Reference in New Issue
Block a user