[3.3.5]Spell::EffectWeaponDmg(SpellEffIndex effIndex) BUG menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    Volodimirovich Dmytro's Avatar Member
    Reputation
    1
    Join Date
    May 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [3.3.5]Spell::EffectWeaponDmg(SpellEffIndex effIndex) BUG

    Actually that's question
    in HandleModDamagePercentDone not correct Central goes , he instead put the interest multiplies them ( not entirely correctly)
    Here is the code of
    Code SpellAuraEffect.cpp
    void AuraEffect::HandleModDamagePercentDone(AuraApplication const* aurApp, uint8 mode, bool apply) const
    {
    if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
    return;

    Unit* target = aurApp->GetTarget();
    if (!target)
    return;

    if (target->GetTypeId() == TYPEID_PLAYER)
    {
    for (int i = 0; i < MAX_ATTACK; ++i)
    if (Item* item = target->ToPlayer()->GetWeaponForAttack(WeaponAttackType(i), false))
    target->ToPlayer()->_ApplyWeaponDependentAuraDamageMod(item, WeaponAttackType(i), this, apply);
    }

    if ((GetMiscValue() & SPELL_SCHOOL_MASK_NORMAL) && (GetSpellInfo()->EquippedItemClass == -1 || target->GetTypeId() != TYPEID_PLAYER))
    {
    target->HandleStatModifier(UNIT_MOD_DAMAGE_MAINHAND, TOTAL_PCT, float (GetAmount()), apply);
    target->HandleStatModifier(UNIT_MOD_DAMAGE_OFFHAND, TOTAL_PCT, float (GetAmount()), apply);
    target->HandleStatModifier(UNIT_MOD_DAMAGE_RANGED, TOTAL_PCT, float (GetAmount()), apply);

    if (target->GetTypeId() == TYPEID_PLAYER)
    target->ToPlayer()->ApplyPercentModFloatValue(PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, float (GetAmount()), apply);
    }
    else
    {
    // done in Player::_ApplyWeaponDependentAuraMods for SPELL_SCHOOL_MASK_NORMAL && EquippedItemClass != -1 and also for wand case
    }
    }

    or this code not correctly work

    void AuraEffect::HandleModDamagePercentDone(AuraApplication const* aurApp, uint8 mode, bool apply) const
    {
    if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_STAT)))
    return;

    Unit* target = aurApp->GetTarget();
    int32 spellGroupVal = target->GetHighestExclusiveSameEffectSpellGroupValue(this, SPELL_AURA_MOD_DAMAGE_PERCENT_DONE);
    if (abs(spellGroupVal) >= abs(GetAmount()))
    return;

    if (target->GetTypeId() == TYPEID_PLAYER)
    {
    for (int i = 0; i < MAX_ATTACK; ++i)
    if (Item* item = target->ToPlayer()->GetWeaponForAttack(WeaponAttackType(i), false))
    target->ToPlayer()->_ApplyWeaponDependentAuraDamageMod(item, WeaponAttackType(i), this, apply);
    }

    if ((GetMiscValue() & SPELL_SCHOOL_MASK_NORMAL) && (GetSpellInfo()->EquippedItemClass == -1 || target->GetTypeId() != TYPEID_PLAYER))
    {
    if (spellGroupVal)
    {
    target->HandleStatModifier(UNIT_MOD_DAMAGE_MAINHAND, TOTAL_PCT, float(spellGroupVal), !apply);
    target->HandleStatModifier(UNIT_MOD_DAMAGE_OFFHAND, TOTAL_PCT, float(spellGroupVal), !apply);
    target->HandleStatModifier(UNIT_MOD_DAMAGE_RANGED, TOTAL_PCT, float(spellGroupVal), !apply);
    }
    target->HandleStatModifier(UNIT_MOD_DAMAGE_MAINHAND, TOTAL_PCT, float(GetAmount()), apply);
    target->HandleStatModifier(UNIT_MOD_DAMAGE_OFFHAND, TOTAL_PCT, float(GetAmount()), apply);
    target->HandleStatModifier(UNIT_MOD_DAMAGE_RANGED, TOTAL_PCT, float(GetAmount()), apply);

    if (Player* player = target->ToPlayer())
    {
    if (spellGroupVal)
    player->ApplyPercentModFloatValue(PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, float(spellGroupVal), !apply);

    player->ApplyPercentModFloatValue(PLAYER_FIELD_MOD_DAMAGE_DONE_PCT, float(GetAmount()), apply);
    }
    }
    else
    {
    // done in Player::_ApplyWeaponDependentAuraMods for SPELL_SCHOOL_MASK_NORMAL && EquippedItemClass != -1 and also for wand case
    }
    }
    When use Berserk 500% = 600% damage and when use 1 more berserk 500% = 3600%

    https://github.com/TrinityCore/TrinityCore/issues/16755

    [3.3.5]Spell::EffectWeaponDmg(SpellEffIndex effIndex) BUG

Similar Threads

  1. Sap / spell cast bug
    By Merinor in forum World of Warcraft Exploits
    Replies: 23
    Last Post: 05-31-2008, 05:19 PM
  2. priest spirit spell dmg bug
    By pNutZ in forum WoW EMU Exploits & Bugs
    Replies: 21
    Last Post: 04-14-2008, 07:15 PM
  3. [EMU] Paladin Super Spell Bug
    By newfang in forum WoW EMU Exploits & Bugs
    Replies: 31
    Last Post: 04-01-2008, 09:05 PM
  4. [EMU] Spell damage bug.
    By Revoon in forum WoW EMU Exploits & Bugs
    Replies: 8
    Last Post: 03-20-2008, 10:50 PM
  5. Bug of casting, instant spells. Cast while CC:ed
    By junga in forum World of Warcraft Exploits
    Replies: 13
    Last Post: 03-15-2008, 05:03 PM
All times are GMT -5. The time now is 12:04 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search