*Update to Mangos 7194.
--HG-- branch : trunk
This commit is contained in:
1 parent
82a10f03a2
commit
a8c836f8d9
6 files changed
+26
-53
No files matched your search
+2
-22
@@ -556,25 +556,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
|
||||
|
||||
uint8 powertype = cEntry->powerType;
|
||||
|
||||
//uint32 unitfield;
|
||||
|
||||
/*switch(powertype)
|
||||
{
|
||||
case POWER_ENERGY:
|
||||
case POWER_MANA:
|
||||
unitfield = 0x00000000;
|
||||
break;
|
||||
case POWER_RAGE:
|
||||
unitfield = 0x00110000;
|
||||
break;
|
||||
case POWER_RUNIC_POWER:
|
||||
unitfield = 0x0000EE00; //TODO: find correct unitfield here
|
||||
break;
|
||||
default:
|
||||
sLog.outError("Invalid default powertype %u for player (class %u)",powertype,class_);
|
||||
return false;
|
||||
}*/
|
||||
|
||||
SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, DEFAULT_WORLD_OBJECT_SIZE);
|
||||
SetFloatValue(UNIT_FIELD_COMBATREACH, 1.5f);
|
||||
|
||||
@@ -599,7 +580,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
|
||||
uint32 RaceClassGender = ( race ) | ( class_ << 8 ) | ( gender << 16 );
|
||||
|
||||
SetUInt32Value(UNIT_FIELD_BYTES_0, ( RaceClassGender | ( powertype << 24 ) ) );
|
||||
//SetUInt32Value(UNIT_FIELD_BYTES_1, unitfield);
|
||||
SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_PVP );
|
||||
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE );
|
||||
SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_REGENERATE_POWER);
|
||||
@@ -19930,9 +19910,9 @@ void Player::InitGlyphsForLevel()
|
||||
if(level >= 15)
|
||||
value |= (0x01 | 0x02);
|
||||
if(level >= 30)
|
||||
value |= 0x04;
|
||||
if(level >= 50)
|
||||
value |= 0x08;
|
||||
if(level >= 50)
|
||||
value |= 0x04;
|
||||
if(level >= 70)
|
||||
value |= 0x10;
|
||||
if(level >= 80)
|
||||
|
||||
Reference in new issue
Block a user