What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Blacklisting mobs in DungeonBuddy

Gouru

New Member
Joined
Jun 20, 2014
Messages
49
Reaction score
0
In DB, is it possible to list mobs that should NOT be attacked?

In LFR Forgotten Depths, Massive Golems are almost always ignored, and I would prefer that if a choice between a Massive Golem and Dark Animus is made, Dark Animus is chosen.

Thanks.
 
it probably could be if you wrote your own dungeon script. but by default, no theres no way to "blacklist" it.
 
Thanks, that was enough clue to get me started. I modified the Halls of Flesh-Shaping.cs file's RemoveTargetsFilter function as follows:
Code:
        private const uint MassiveAnimaGolemId = 69699;
        public override void RemoveTargetsFilter(List<WoWObject> units)
        {
            units.RemoveAll(
                ret =>
                {
                    var unit = ret.ToUnit();
		    if (unit != null && unit.Entry == MassiveAnimaGolemId) 
                    {
                        return true;
                    }
		    return false;
		});
	}

I have not tested this yet, but based on other examples believe it will work. Are there any suggestion on how to improve my code (looking for Code Review :) ).

Also, is there a way to get DB to use my script for that dungeon without overwriting the original? Or should I just make a copy of my changes so I can recreate them if a new DB is pushed?
 
i would just backup the orginal, or not. theres also a custom scripts path, so maybe copy the orginals then set to the path to your custom ones.
 
Back
Top