mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9499] Add replacement spells for GO type 10 that may have dummy spellId in _template
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
faa29797f6
commit
6ec9dd5d93
2 changed files with 11 additions and 1 deletions
|
|
@ -1076,6 +1076,16 @@ void GameObject::Use(Unit* user)
|
||||||
// cast this spell later if provided
|
// cast this spell later if provided
|
||||||
spellId = info->goober.spellId;
|
spellId = info->goober.spellId;
|
||||||
|
|
||||||
|
// database may contain a dummy spell, so it need replacement by actually existing
|
||||||
|
switch(spellId)
|
||||||
|
{
|
||||||
|
case 34448: spellId = 26566; break;
|
||||||
|
case 34452: spellId = 26572; break;
|
||||||
|
case 37639: spellId = 36326; break;
|
||||||
|
case 45367: spellId = 45371; break;
|
||||||
|
case 45370: spellId = 45368; break;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GAMEOBJECT_TYPE_CAMERA: //13
|
case GAMEOBJECT_TYPE_CAMERA: //13
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9498"
|
#define REVISION_NR "9499"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue