Jump to content

raftom

Members
  • Posts

    24
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by raftom

  1. it fixes a bug that teams with rating below 1500 dont gets points as if they where at 1500 rating

    http://www.wowwiki.com/Season_6 here is small info

    diff --git a/ArenaTeam.cpp b/ArenaTeam2.cpp
    index ed4ce5b..4d413d6 100644
    --- a/ArenaTeam.cpp
    +++ b/ArenaTeam2.cpp
    @@ -523,7 +523,10 @@ uint32 ArenaTeam::GetPoints(uint32 MemberRating)
        float points;
    
        uint32 rating = MemberRating + 150 < m_stats.rating ? MemberRating : m_stats.rating;
    -
    +    
    +    if (sWorld.getConfig(CONFIG_UINT32_ARENA_SEASON_ID) >= 6 && rating <= 1500)
    +        rating = 1500;
    +    
        if(rating <= 1500)
            points = (float)rating * 0.22f + 14.0f;
        else
    

    also try checking arena calculators for more info

    plz test and share comments :D

  2. Looks nice except the problem that you remove an aura while using AuraList::const_iterator. Take a look at other examples in the source how this should be done, there are many of them.

    hmmm i found this (divine purpose)

            AuraMap& Auras = pVictim->GetAuras();
                       for(AuraMap::const_iterator iter = Auras.begin(); iter != Auras.end()
                       {
                           SpellEntry const *spell = iter->second->GetSpellProto();
                           if( spell->Mechanic == MECHANIC_STUN ||
                               spell->EffectMechanic[iter->second->GetEffIndex()] == MECHANIC_STUN)
                           {
                               pVictim->RemoveAurasDueToSpell(spell->Id);
                               iter = Auras.begin();
                           }
                           else
                               ++iter;
                       }

    is this a better way to write haste part of the glyph?

  3. What bug does the patch fix? What features does the patch add?

    haste part for talent borrowed time

    For which repository revision was the patch created?

    7643

    Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

    didn't find any

    Who has been writing this patch? Please include either forum user names or email addresses.

    that would be me :)

    diff --git a/Unit.cpp b/Unit2.cpp
    index c8f19e0..11ca352 100644
    --- a/Unit.cpp
    +++ b/Unit2.cpp
    @@ -6343,6 +6343,22 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
                        basepoints0 = damage * triggerAmount / 100 / 3;
                        target = this;
                    }
    +                //borrowed time - haste
    +                else if (auraSpellInfo->SpellIconID == 2899)
    +                {
    +                    switch (auraSpellInfo->Id)
    +                    {
    +                        case 52795: trigger_spell_id = 59887; break;
    +                        case 52797: trigger_spell_id = 59888; break;
    +                        case 52798: trigger_spell_id = 59889; break;
    +                        case 52799: trigger_spell_id = 59890; break;
    +                        case 52800: trigger_spell_id = 59891; break;
    +                        default:
    +                            sLog.outError("Unit::HandleProcTriggerSpell: Spell %u not handled in Borrowed time", auraSpellInfo->Id);
    +                        return false;
    +                    }
    +                    target = pVictim;
    +                }
                    break;
                }
                case SPELLFAMILY_DRUID:

    edit:

    it already worked sry .. i didnt noticed

  4. the only entries i was able to find from wowhead and spell.dbc were these below and 33245 (used by some mobs)

    DELETE FROM `spell_bonus_data` WHERE `entry` IN ('11426','13031','13032','13033','27134','33405','43038','43039');

    INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`, `ap_bonus`, `comments`) VALUES

    ('11426', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 1)'),

    ('13031', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 2)'),

    ('13032', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 3)'),

    ('13033', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 4)'),

    ('27134', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 5)'),

    ('33405', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 6)'),

    ('43038', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 7)'),

    ('43039', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 8)');

    that hardcoded values was on purpose i believe ... just read the comment (to prevent double apply bonus)

  5. I have one question about Ice Barrier... it doesnt seem to get 80% bonus from spell power

    http://www.wowwiki.com/Spell_power_coefficient

    so i thought it might help

    DELETE FROM `spell_bonus_data` WHERE `entry` IN ('11426','13031','13032','13033','27134','33405','43038','43039'); 
    INSERT INTO `spell_bonus_data` (`entry`, `direct_bonus`, `dot_bonus`, `ap_bonus`, `comments`) VALUES 
    ('11426', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 1)'), 
    ('13031', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 2)'), 
    ('13032', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 3)'), 
    ('13033', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 4)'), 
    ('27134', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 5)'), 
    ('33405', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 6)'), 
    ('43038', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 7)'), 
    ('43039', '0.8053', '0', '0', 'Mage - Ice Barrier(Rank 8)'); 
    

    if sth is wrong with entries plz correct it :)

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