mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[9428] Remove redundant calls to Set(Max)Health, already done by SelectLevel function.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
67c5e57b0a
commit
5ec0c18d2c
2 changed files with 2 additions and 3 deletions
|
|
@ -81,9 +81,8 @@ bool Vehicle::Create(uint32 guidlow, Map *map, uint32 Entry, uint32 vehicleId, u
|
|||
|
||||
CreatureInfo const *ci = GetCreatureInfo();
|
||||
setFaction(team == ALLIANCE ? ci->faction_A : ci->faction_H);
|
||||
SetMaxHealth(ci->maxhealth);
|
||||
|
||||
SelectLevel(ci);
|
||||
SetHealth(GetMaxHealth());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9427"
|
||||
#define REVISION_NR "9428"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue