Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[T10 Deathknight] 4 Set bonus #6449

Closed
ghost opened this issue May 5, 2012 · 13 comments
Closed

[T10 Deathknight] 4 Set bonus #6449

ghost opened this issue May 5, 2012 · 13 comments

Comments

@ghost
Copy link

ghost commented May 5, 2012

How to reprduce the bug
Open DK
Get 4 Part of Tier 10 gear
makes all your runes be in CD

What is the expected outpot?
The spell - Item - Death Knight T10 Melee 4P Bonus - "Whenever all your runes are on cooldown, you gain 3% increased damage done with weapons, spells, and abilities for the next 15 sec."
Should have proc of 100%.

What happen instead?
The proc isn't 100% , i can't how much % it is now , i just know it isnt 100%

Related Links:
http://www.wowhead.com/spell=70656
http://www.wowhead.com/itemset=-261

Server info:
Hash : a8a5b5a
Tdb: 335.11.46+

@durrrr
Copy link

durrrr commented May 6, 2012

Confirmed.

@Star-lion
Copy link
Contributor

this is a duplicate but im not entirely sure where the other issue is.

@Vincent-Michael
Copy link
Contributor

#2286 ?

@ghost ghost assigned Star-lion May 7, 2012
@ghost
Copy link
Author

ghost commented May 9, 2012

You closed the 1st issue , so i didnt know if it would be ok to respon there , so i opened now one ,
sorry for mess

@plorefice
Copy link

Confirmed. I've also noticed this behaviour:

  • Make all your runes be in CD -> Spell isn't triggered
  • Wait for a rune to finish CD, then use it again immediately -> Spell is triggered with 100% proc chance from what I've seen

I think I've also tracked down the code related in Unit.cpp:

// Item - Death Knight T10 Melee 4P Bonus
if (dummySpell->Id == 70656)
{
    Player* player = ToPlayer();
    if (!player)
        return false;

    for (uint32 i = 0; i < MAX_RUNES; ++i)
        if (player->GetRuneCooldown(i) == 0)
            return false;
}
break;

I've tried to add triggered_spell_id = 70657; after the for loop, but it didn't work (I've been working on the code for just a couple of day, so I should have seen it coming).

@Midnights
Copy link

try to add an
else return true;
for the if in the loop

@Vincent-Michael
Copy link
Contributor

try mangos version (works for me fine):

diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index e038d11..28cc99a 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -8859,6 +8859,16 @@ bool Unit::HandleProcTriggerSpell(Unit* victim, uint32 damage, AuraEffect* trigg
                     trigger_spell_id = 50475;
                     basepoints0 = CalculatePctN(int32(damage), triggerAmount);
                 }
+                // Item - Death Knight T10 Melee 4P Bonus
+                else if (auraSpellInfo->Id == 70656)
+                {
+                    if (GetTypeId() != TYPEID_PLAYER || getClass() != CLASS_DEATH_KNIGHT)
+                        return false;
+
+                    for (uint32 i = 0; i < MAX_RUNES; ++i)
+                        if (((Player*)this)->GetRuneCooldown(i) == 0)
+                            return false;
+                }
                 break;
             }
             case SPELLFAMILY_ROGUE:

@Star-lion
Copy link
Contributor

ewww ill fix this code up later

@plorefice
Copy link

I just tried to apply the fix and the problem persists. You can verify it with a simple spell rotation like:
Icy Touch -> Plague Strike -> Blood Strike -> repeat one more time
You'll have all of your runes in CD but the spell doesn't proc. If you however cast Icy Touch again once it's ready, the spell will actually proc. I don't know if this behaviour is expected, but from what the description reads, I'd say it isn't.

@Vincent-Michael
Copy link
Contributor

@Expecto HandleDummyAuraProc is wrong, it is SPELL_AURA_PROC_TRIGGER_SPELL spell ...

@Star-lion
Copy link
Contributor

uhh how about try

DELETE FROM `spell_proc_event` WHERE `entry` = 70656;

also it shouldnt apply this aura if you already have it right?

@ghost
Copy link
Author

ghost commented May 17, 2012

if in there is 0 in proc chance what its means?

@TGM
Copy link

TGM commented May 17, 2012

@Kandera, spell_proc_event patch works just fine, thank you.

raczman pushed a commit to raczman/TrinityCore that referenced this issue Apr 20, 2014
…ityCore#3820. fix blood presence to NOT proc on positive spells (causes issues with healing spells making you heal) Closes TrinityCore#6009. fix dk t10 4peice bonus Closes TrinityCore#6449.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants