mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11815] Fix sending custom GO animation for Type10 GOs
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
5b0c0c9fa4
commit
a25982abf6
2 changed files with 3 additions and 5 deletions
|
|
@ -1135,15 +1135,13 @@ void GameObject::Use(Unit* user)
|
||||||
SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE);
|
SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE);
|
||||||
SetLootState(GO_ACTIVATED);
|
SetLootState(GO_ACTIVATED);
|
||||||
|
|
||||||
uint32 time_to_restore = info->GetAutoCloseTime();
|
|
||||||
|
|
||||||
// this appear to be ok, however others exist in addition to this that should have custom (ex: 190510, 188692, 187389)
|
// this appear to be ok, however others exist in addition to this that should have custom (ex: 190510, 188692, 187389)
|
||||||
if (time_to_restore && info->goober.customAnim)
|
if (info->goober.customAnim)
|
||||||
SendGameObjectCustomAnim(GetObjectGuid());
|
SendGameObjectCustomAnim(GetObjectGuid());
|
||||||
else
|
else
|
||||||
SetGoState(GO_STATE_ACTIVE);
|
SetGoState(GO_STATE_ACTIVE);
|
||||||
|
|
||||||
m_cooldownTime = time(NULL) + time_to_restore;
|
m_cooldownTime = time(NULL) + info->GetAutoCloseTime();
|
||||||
|
|
||||||
// cast this spell later if provided
|
// cast this spell later if provided
|
||||||
spellId = info->goober.spellId;
|
spellId = info->goober.spellId;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11814"
|
#define REVISION_NR "11815"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue