Jump to content

gpadmin

Members
  • Posts

    12
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by gpadmin

  1. Custom db my boss id diff from ytdb I mean in dungeon list we have just OS with out "note" like os10 os25
  2. Shadez i am correct? You add boss id's self then its problem for custom DB we need rewrite it all? or its can be auto generated? Why you miss obsedian sunctrum 10? Chouice in list icc10 all bosses show me list of items but source Icecrown Citadel (25) same for some inst25, show Icecrown Citadel (10) tooltip show correct data.
  3. Yes Naicisum trinity AHBOT have this function, its very useful for servers
  4. gpadmin

    Sap Bug

    9044 still buged
  5. Convert for mangos, ty n0n4m3 for patch. http://bitbucket.org/n0n4m3/ KAPATEJIb i miss that, sry. Test new patch please, work perfect i think. I just correct visual part for this spell. Time to add this spell for mangos source diff --git a/.gitignore b/.gitignore diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 4d1feeb..59c8965 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1857,20 +1857,43 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe break; } case SPELLFAMILY_PALADIN: - { - // Ardent Defender - if (spellProto->SpellIconID == 2135) - { - // uses 66233 as a cooldown for healing effect - if (!((Player*)pVictim)->HasAura(66233)) - preventDeathSpell = (*i)->GetSpellProto(); - - if(pVictim->GetHealth() - RemainingDamage <= pVictim->GetMaxHealth() * 0.7f) - RemainingDamage -= RemainingDamage * currentAbsorb / 100; - - continue; - } - } + { + // Ardent Defender + if (spellProto->SpellIconID == 2135 && pVictim->GetTypeId() == TYPEID_PLAYER) + { + int32 remainingHealth = pVictim->GetHealth() - RemainingDamage; + uint32 allowedHealth = pVictim->GetMaxHealth() * 0.35f; + // If damage kills us + if (remainingHealth <= 0 && !((Player*)pVictim)->HasSpellCooldown(66235)) + { + // Cast healing spell, completely avoid damage + RemainingDamage = 0; + + uint32 defenseSkillValue = pVictim->GetDefenseSkillValue(); + // Max heal when defense skill denies critical hits from raid bosses + // Formula: max defense at level + 140 (raiting from gear) + uint32 reqDefForMaxHeal = pVictim->getLevel() * 5 + 140; + float pctFromDefense = (defenseSkillValue >= reqDefForMaxHeal) + ? 1.0f + : float(defenseSkillValue) / float(reqDefForMaxHeal); + + int32 healAmount = pVictim->GetMaxHealth() * ((*i)->GetSpellProto()->EffectBasePoints[1] + 1) / 100.0f * pctFromDefense; + pVictim->CastCustomSpell(pVictim, 66235, &healAmount, NULL, NULL, true); + ((Player*)pVictim)->AddSpellCooldown(66235,0,time(NULL) + 120); + } + else if (remainingHealth < allowedHealth) + { + // Reduce damage that brings us under 35% (or full damage if we are already under 35%) by x% + uint32 damageToReduce = (pVictim->GetHealth() < allowedHealth) + ? RemainingDamage + : allowedHealth - remainingHealth; + RemainingDamage -= damageToReduce * currentAbsorb / 100; + } + continue; + + } + break; + } case SPELLFAMILY_PRIEST: { // Guardian Spirit @@ -2180,31 +2203,6 @@ void Unit::CalcAbsorbResist(Unit *pVictim,SpellSchoolMask schoolMask, DamageEffe } break; } - // Ardent Defender - case SPELLFAMILY_PALADIN: - { - // Ardent Defender - if (preventDeathSpell->SpellIconID == 2135) - { - int32 healAmount = preventDeathSpell->EffectBasePoints[1]; // get from dummy aura instead? - int32 defRate = pVictim->GetDefenseSkillValue(); - defRate -= (pVictim->getLevel() * 5); - - // if no defence rating bonus don't absorb - if (!defRate || defRate < 0) - break; - - int32 heal = int32(defRate * pVictim->GetMaxHealth() * healAmount / 14000) - pVictim->GetHealth(); - if(heal > 0) - { - //cast heal - pVictim->CastCustomSpell(pVictim, 66235, &heal, NULL, NULL, true); - pVictim->CastSpell(pVictim, 66233, true); - } - RemainingDamage = 0; - } - break; - } // Guardian Spirit case SPELLFAMILY_PRIEST: {
  6. Alternative for us is http://dev.trinitycore.org/trinityco.../c418e7f83583/ didn't tested dough its work better, but problem with visual effects and visual debuff. I try KAPATEJIb your last source, this spell bugged. When hp low to 1-3% you start absorb any skills on you. And this not insider repo bug, this source from mangos i think.
  7. Hello. When you learn this talent you cant die anymore. http://www.wowhead.com/?spell=31850 1. When you have defence rating 400 you not have absorb effect. Work fine here. 2. Now add some defence for self. Like wear item and now we have 405 defence ratiing. When its happen you got full absorb for any attacks on self when hp low 5%
  8. This look like you need this item equip before mount.
  9. git clone git://github.com/Tasssadar/Valhalla-Project.git vehicle cd vehicle git checkout origin/vehicle git checkout -b vehicle git diff master vehicle > vehicle.patch after that, you need fix patch by hands for fully appled.
  10. Same, yes man, fix it be hands its posseble.
  11. Sad, not applying on Karatel source Yes, source in patch will be nice
×
×
  • 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