Jump to content

[patch] Add loot-rules for chests


Guest AuntieMangos

Recommended Posts

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

Add possibility to use loot-rules for any lootable object in world. In this case for chests with right data in DB.

For which repository revision was the patch created?

9933

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

http://getmangos.eu/community/showthread.php?13160-BUG-Loot-chests&highlight=master+loot

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

me

patch

Maybe need some corrections, cuz was written by fast-hands xD

Link to comment
Share on other sites

  • 40 years later...

this patch looks a bit hacky:

+                    if(Group* group = GetGroup())
+                    {
+                        if (group == this->GetGroup())

why do you check again if it's that value which you have just set? GetGroup() is the same as this->GetGroup()

also, those if's are strange, instead of something like

if(a) {
 if(b) {
   ...
     if(z) { ...}
 }
}

you can just do

if(a && b ... && z) { ... }

-- DasBlub

Link to comment
Share on other sites

  • 1 year later...
Guest
This topic is now closed to further replies.
×
×
  • 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