Skip to content

Commit

Permalink
[9499] Add replacement spells for GO type 10 that may have dummy spel…
Browse files Browse the repository at this point in the history
…lId in _template

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Mar 1, 2010
1 parent fbc1a87 commit 6f01ad7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/game/GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,16 @@ void GameObject::Use(Unit* user)
// cast this spell later if provided
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;
}
case GAMEOBJECT_TYPE_CAMERA: //13
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9498"
#define REVISION_NR "9499"
#endif // __REVISION_NR_H__

0 comments on commit 6f01ad7

Please sign in to comment.