Den
14.11.2010, 23:23
Должен идти отсчёт в секундах, у нас же тупо висит до окончания.
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 81bc6ff..fa7791f 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3962,7 +3962,16 @@ void Aura::HandleModStealth(bool apply, bool Real)
{
// Master of Subtlety
if ((*i)->GetSpellProto()->SpellIconID == 2114)
+ {
target->CastSpell(target, 31666, true);
+ // duration aura in seconds
+ if (Aura* aura = target->GetAura(31665, EFFECT_INDEX_0))
+ {
+ aura->SetAuraMaxDuration(6*IN_MILLISECONDS);
+ aura->GetHolder()->RefreshHolder();
+ }
+ }
+
// Overkill
else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000400000))
{
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 81bc6ff..fa7791f 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -3962,7 +3962,16 @@ void Aura::HandleModStealth(bool apply, bool Real)
{
// Master of Subtlety
if ((*i)->GetSpellProto()->SpellIconID == 2114)
+ {
target->CastSpell(target, 31666, true);
+ // duration aura in seconds
+ if (Aura* aura = target->GetAura(31665, EFFECT_INDEX_0))
+ {
+ aura->SetAuraMaxDuration(6*IN_MILLISECONDS);
+ aura->GetHolder()->RefreshHolder();
+ }
+ }
+
// Overkill
else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000400000))
{