Jump to content

Manners Matter

Members
  • Content Count

    1
  • Donations

    0.00 GBP 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Manners Matter

  • Rank
    Newbie
  • Birthday 06/21/2000

Core Infomation

  • Core
    One
  1. I have one simple fix for this issue. Traps need to check target before trigger: GameObject.cpp - Trap trigger ,so we need to improve conditions in AnyUnfriendlyUnitInObjectRangeCheck ==> GridNotifiers.h Code: class AnyUnfriendlyUnitInObjectRangeCheck { public: AnyUnfriendlyUnitInObjectRangeCheck(WorldObject const* obj, float range) : i_obj(obj), i_range(range) { i_controlledByPlayer = obj->IsControlledByPlayer(); } WorldObject const& GetFocusObject() const { return *i_obj; } bool operator()(Unit* u) { +// ignore totems +if (u->GetTypeId() == TYPEID_UNIT && ((Creature*)u)->IsTotem()) +{ + return false; +} if (u->IsAlive() && (i_controlledByPlayer ? !i_obj->IsFriendlyTo(u) : i_obj->IsHostileTo(u)) && i_obj->IsWithinDistInMap(u, i_range)) { return true; } else { return false; } } private: WorldObject const* i_obj; bool i_controlledByPlayer; float i_range; };

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×
×
  • 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