mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7191] Some command related fixes.
* Allow use spell shift-link in .aura and .unaura commands * Drop commented code and update .reset level command for support DK case. Also command for other classes will reset leve not to 1 but to config starting level value
This commit is contained in:
parent
2e3e3f0dbb
commit
8292567376
3 changed files with 17 additions and 47 deletions
|
|
@ -544,25 +544,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);
|
||||
|
||||
|
|
@ -587,7 +568,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue