Jump to content

bulek

Members
  • Posts

    194
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by bulek

  1. BUMP nice patch In its patch, I used the correct adjustment of your thank you:) Unit* caster = GetCaster(); + m_modifier.m_amount = (caster->GetCreateMana() * (GetSpellProto()->EffectBasePoints[0]+1) / 100) / (m_maxduration/1000); + if (m_spellProto->Id == 29166 && caster->HasAura(54832) && m_target->HasAura(29166)) + caster->CastSpell(caster,54833,true,0,0,caster->GetGUID()); + return; + } + default: + break; + } } void Aura::HandleAuraPowerBurn(bool apply, bool /*Real*/) { m_isPeriodic = apply;
  2. ok, and this patch works correct? diff -- git a / src / game / SpellAuras . cpp b / src / game / SpellAuras . cpp index 3a0862d . .0d28cb8 100644 --- a / src / game / SpellAuras . cpp +++ b / src / game / SpellAuras . cpp @@ - 2637 , 6 + 2637 , 9 @@ void Aura :: HandleAuraModShapeshift ( bool apply , bool Real ) case FORM_SHADOW : case FORM_STEALTH : break; + case FORM_SHADOWDANCE : + PowerType = POWER_ENERGY ; + break; case FORM_TREE : modelid = 864 ; break; @@ - 2682 , 7 + 2685 , 8 @@ void Aura :: HandleAuraModShapeshift ( bool apply , bool Real ) if( m_target -> m_ShapeShiftFormSpellId ) m_target -> RemoveAurasDueToSpell ( m_target -> m_ShapeShiftFormSpellId , this ); - m_target -> SetByteValue ( UNIT_FIELD_BYTES_2 , 3 , form ); + // For Shadow Dance we must apply Stealth form (30) instead of current (13) + m_target -> SetByteValue ( UNIT_FIELD_BYTES_2 , 3 , ( form == FORM_SHADOWDANCE ) ? uint8 ( FORM_STEALTH ) : form ); if( modelid > 0 ) m_target -> SetDisplayId ( modelid ); @@ - 2747 , 6 + 2751 , 10 @@ void Aura :: HandleAuraModShapeshift ( bool apply , bool Real ) m_target -> SetPower ( POWER_RAGE , Rage_val ); break; } + // Shadow Dance - apply stealth mode stand flag + case FORM_SHADOWDANCE : + m_target -> SetStandFlags ( UNIT_STAND_FLAGS_CREEP ); + break; default: break; } @@ - 2779 , 6 + 2787 , 10 @@ void Aura :: HandleAuraModShapeshift ( bool apply , bool Real ) if( Aura * dummy = m_target -> GetDummyAura ( 37324 ) ) m_target -> CastSpell ( m_target , 37325 , true , NULL , dummy ); break; + // Shadow Dance - remove stealth mode stand flag + case FORM_SHADOWDANCE : + m_target -> RemoveStandFlags ( UNIT_STAND_FLAGS_CREEP ); + break; default: break; } diff -- git a / src / game / Unit . h b / src / game / Unit . h index faefbef . .3f0e578 100644 --- a / src / game / Unit . h +++ b / src / game / Unit . h @@ - 167 , 6 + 167 , 7 @@ enum ShapeshiftForm FORM_GHOUL = 0x07 , FORM_DIREBEAR = 0x08 , FORM_CREATUREBEAR = 0x0E , + FORM_SHADOWDANCE = 0x0D , FORM_CREATURECAT = 0x0F , FORM_GHOSTWOLF = 0x10 , FORM_BATTLESTANCE = 0x11 ,
  3. confirmed works without any problems
  4. Do you have someone dake news? patch looks interesting :confused:
  5. well done well done nice patch works 100% no errors;)
  6. BUMP add commint this nice patch :-)
  7. SQL FOR delete arena points: UPDATE `characters` SET `data`=CONCAT(CAST(SUBSTRING_INDEX(`data`, ' ', 1247) AS CHAR), ' ', 0, ' ', CAST(SUBSTRING_INDEX(`data`, ' ', -47) AS CHAR)); Use this sql server off only when you remember and the security for an advance
  8. Kung FU Bump:) btw this code part is correct for impleting:confused: float maxval = pVictim->GetMaxPositiveAuraModifier(SPELL_AURA_MOD_HEALING_PCT); + // can SPELL_AURA_MOD_PERIODIC_HEAL be positive? if(maxval) TakenTotalMod *= (100.0f + maxval) / 100.0f
  9. any progres in this necessary patch? iam tested on 8478 rev and works fine
  10. bump, very nice patch add the commit;):confused:
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use