Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender
Port From (https://github.com/TrinityCore/TrinityCore/commit/27886c7f5d6cfc221ea67aab210f96859d725e05)
This commit is contained in:
@@ -99,7 +99,7 @@ namespace Game.Conditions
|
||||
break;
|
||||
case ConditionTypes.Gender:
|
||||
if (player != null)
|
||||
condMeets = player.GetGender() == (Gender)ConditionValue1;
|
||||
condMeets = player.GetNativeGender() == (Gender)ConditionValue1;
|
||||
break;
|
||||
case ConditionTypes.Skill:
|
||||
if (player != null)
|
||||
|
||||
@@ -1846,7 +1846,7 @@ namespace Game
|
||||
if (condition.Gender >= 0 && (int)player.GetGender() != condition.Gender)
|
||||
return false;
|
||||
|
||||
if (condition.NativeGender >= 0 && player.GetNativeSex() != (Gender)condition.NativeGender)
|
||||
if (condition.NativeGender >= 0 && player.GetNativeGender() != (Gender)condition.NativeGender)
|
||||
return false;
|
||||
|
||||
if (condition.PowerType != -1 && condition.PowerTypeComp != 0)
|
||||
|
||||
Reference in New Issue
Block a user