Bug du sort Puit de lumière.
Fix à rechercher
Fix à rechercher
Aucun utilisateur |
Vous n'êtes pas connecté. Connectez-vous ou enregistrez-vous
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index c02a49f..168d34a 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -2461,6 +2461,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
case 58591: // Stoneclaw Totem X
m_target->CastSpell(m_target, 58585, true);
return;
+ case 59907: // Lightwell charges
+ if (m_target->GetTypeId() == TYPEID_UNIT)
+ ((Creature*)m_target)->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_SPELLCLICK);
+ return;
case 62061: // Festive Holiday Mount
if (m_target->HasAuraType(SPELL_AURA_MOUNTED))
// Reindeer Transformation
@@ -2711,6 +2715,12 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
caster->RemoveAurasDueToSpell(34027);
return;
}
+ case 59907: // Lightwell charges - despawn creature if no charges remain
+ {
+ if (m_target->GetTypeId() == TYPEID_UNIT)
+ ((Creature*)m_target)->AddObjectToRemoveList();
+ return;
+ }
}
// Living Bomb
if (m_spellProto->SpellFamilyName == SPELLFAMILY_MAGE && (m_spellProto->SpellFamilyFlags & UI64LIT(0x2000000000000)))
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 7ded7bf..0860f25 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -6150,6 +6150,37 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget, 59943, true);
return;
}
+ case 60123: // Lightwell Renew
+ {
+ Unit* creator = Unit::GetUnit(*m_caster, m_caster->GetCreatorGUID());
+
+ if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER ||
+ !creator || creator->GetTypeId() != TYPEID_PLAYER ||
+ ((Player*)unitTarget)->GetTeam() != ((Player*)creator)->GetTeam())
+ return;
+
+ uint32 renewSpell = 0;
+ switch(m_caster->GetEntry())
+ {
+ case 31897: renewSpell = 7001; break;
+ case 31896: renewSpell = 27873; break;
+ case 31895: renewSpell = 27874; break;
+ case 31894: renewSpell = 28276; break;
+ case 31893: renewSpell = 48084; break;
+ case 31883: renewSpell = 48085; break;
+ default: break;
+ }
+
+ m_caster->CastSpell(unitTarget, renewSpell, true);
+
+ if (Aura* aur = m_caster->GetAura(59907, EFFECT_INDEX_0))
+ {
+ if (aur->GetAuraCharges() > 1)
+ aur->DropAuraCharge();
+ else m_caster->RemoveAura(aur);
+ }
+ return;
+ }
// random spell learn instead placeholder
case 60893: // Northrend Alchemy Research
case 61177: // Northrend Inscription Research
DELETE FROM npc_spellclick_spells WHERE npc_entry IN (31883,31893,31894,31895,31896,31897);
INSERT INTO npc_spellclick_spells VALUES
(31897,60123,0,0,0,2), -- rank 1
(31896,60123,0,0,0,2), -- rank 2
(31895,60123,0,0,0,2), -- rank 3
(31894,60123,0,0,0,2), -- rank 4
(31893,60123,0,0,0,2), -- rank 5
(31883,60123,0,0,0,2); -- rank 6
DELETE FROM creature_template_addon WHERE entry IN (31897,31896,31895,31894,31893,31883);
INSERT INTO creature_template_addon VALUES
(31883,0,0,0,0,0,'59907 0'),
(31893,0,0,0,0,0,'59907 0'),
(31894,0,0,0,0,0,'59907 0'),
(31895,0,0,0,0,0,'59907 0'),
(31896,0,0,0,0,0,'59907 0'),
(31897,0,0,0,0,0,'59907 0');
Sujets similaires
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum