mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9809] Drop dead code after switch.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4910add486
commit
7ce07fb495
2 changed files with 1 additions and 31 deletions
|
|
@ -1521,36 +1521,6 @@ void Aura::TriggerSpell()
|
||||||
{
|
{
|
||||||
switch(auraId)
|
switch(auraId)
|
||||||
{
|
{
|
||||||
// Firestone Passive (1-5 ranks)
|
|
||||||
case 758:
|
|
||||||
case 17945:
|
|
||||||
case 17947:
|
|
||||||
case 17949:
|
|
||||||
case 27252:
|
|
||||||
{
|
|
||||||
if (target->GetTypeId() != TYPEID_PLAYER)
|
|
||||||
return;
|
|
||||||
Item* item = ((Player*)target)->GetWeaponForAttack(BASE_ATTACK);
|
|
||||||
if (!item)
|
|
||||||
return;
|
|
||||||
uint32 enchant_id = 0;
|
|
||||||
switch (GetId())
|
|
||||||
{
|
|
||||||
case 758: enchant_id = 1803; break; // Rank 1
|
|
||||||
case 17945: enchant_id = 1823; break; // Rank 2
|
|
||||||
case 17947: enchant_id = 1824; break; // Rank 3
|
|
||||||
case 17949: enchant_id = 1825; break; // Rank 4
|
|
||||||
case 27252: enchant_id = 2645; break; // Rank 5
|
|
||||||
default:
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// remove old enchanting before applying new
|
|
||||||
((Player*)target)->ApplyEnchantment(item,TEMP_ENCHANTMENT_SLOT,false);
|
|
||||||
item->SetEnchantment(TEMP_ENCHANTMENT_SLOT, enchant_id, m_modifier.periodictime+1000, 0);
|
|
||||||
// add new enchanting
|
|
||||||
((Player*)target)->ApplyEnchantment(item,TEMP_ENCHANTMENT_SLOT,true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// // Periodic Mana Burn
|
// // Periodic Mana Burn
|
||||||
// case 812: break;
|
// case 812: break;
|
||||||
// // Polymorphic Ray
|
// // Polymorphic Ray
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9808"
|
#define REVISION_NR "9809"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue