mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10325] Improve process for Use() of GAMEOBJECT_TYPE_SUMMONING_RITUAL
This allow GO's not summoned by any to be processed and use the spells as defined in GO template as expected. In addition some new checks to determine if GO should despawn and if group membership should be checked or not to allow use. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
edace1948e
commit
027261e295
3 changed files with 67 additions and 26 deletions
|
|
@ -716,6 +716,7 @@ class MANGOS_DLL_SPEC GameObject : public WorldObject
|
|||
// For traps this: spell casting cooldown, for doors/buttons: reset time.
|
||||
std::list<uint32> m_SkillupList;
|
||||
|
||||
Player* m_ritualOwner; // used for GAMEOBJECT_TYPE_SUMMONING_RITUAL where GO is not summoned (no owner)
|
||||
std::set<uint32> m_unique_users;
|
||||
uint32 m_usetimes;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue