Jump to content
  • Judgement of Command


    Talendrys
    • Status: Awaiting Feedback
      Main Category: Database
      Sub-Category: Spell
      Version: 0.20(currentmasterbranch) Milestone: 21 Priority: New
      Implemented Version: 0.20(currentmasterbranch)

    Judgement of Command

    Normally this Spell make on not Stuned Mobs 150 Damage and on Stuned Mobs 350 Damage. At my Testserver this spell make always 350 Damage.


    User Feedback

    Recommended Comments

    [QUOTE]ghost commented on 11 Apr 2013

    I fixed this using "CastCustomSpell" in the SpellEffects.cpp starting at line 1175:




    case 561: // Judgement of command
    {
    if (!unitTarget)
    return;

    uint32 spell_id = m_currentBasePoints[eff_idx];
    SpellEntry const* spell_proto = sSpellStore.LookupEntry(spell_id);
    if (!spell_proto)
    return;

    if (!unitTarget->hasUnitState(UNIT_STAT_STUNNED) && m_caster->GetTypeId() == TYPEID_PLAYER)
    {
    int32 totaldamage = int32((damage * 0.01) / 2);
    m_caster->CastCustomSpell(unitTarget, spell_proto, &totaldamage, NULL, NULL, true, m_CastItem);
    }
    else
    m_caster->CastSpell(unitTarget, spell_proto, true, NULL);

    return;
    }
    }
    break;

    [/QUOTE]

    [QUOTE]billy1arm commented on 7 Jun 2013
    case 561: // Judgement of command
    {
    if (!unitTarget)
    return;

    uint32 spell_id = m_currentBasePoints[eff_idx];
    SpellEntry const* spell_proto = sSpellStore.LookupEntry(spell_id);
    if (!spell_proto)
    return;

    if (!unitTarget->hasUnitState(UNIT_STAT_STUNNED) && m_caster->GetTypeId() == TYPEID_PLAYER)
    {
    // decreased damage (/2) for non-stunned target.
    SpellModifier* mod = new SpellModifier(SPELLMOD_DAMAGE, SPELLMOD_PCT, -50, m_spellInfo->Id, UI64LIT(0x0000020000000000));

    ((Player*)m_caster)->AddSpellMod(mod, true);
    m_caster->CastSpell(unitTarget, spell_proto, true, NULL);
    // mod deleted
    ((Player*)m_caster)->AddSpellMod(mod, false);
    }
    else
    m_caster->CastSpell(unitTarget, spell_proto, true, NULL);

    return;
    }

    [/QUOTE]

    [QUOTE]ghost commented on 8 Jun 2013

    case SPELLFAMILY_PALADIN: { switch (m_spellInfo->SpellIconID)
    [COLOR=#333333][FONT=Helvetica Neue]Therefore, 561 is not the Spellid but the Spelliconid underneath the spellfamily paladin as far as I understand it, and if I understand this correctly. :D[/FONT][/COLOR]
    [/QUOTE]

    Imported replies from github issues.

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • 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