remove pvp restrictions as they are pointless

This commit is contained in:
avitasia
2026-03-10 14:58:44 -07:00
parent 88dc717c91
commit 7a325adfda
4 changed files with 4565 additions and 4581 deletions
+4564 -4564
View File
File diff suppressed because it is too large Load Diff
-4
View File
@@ -157,10 +157,6 @@ namespace Nampower {
}
}
if (!isSelf && isBuff && game::UnitIsPvpFlagged(unit) && game::PlayerCanAttackUnit(unit)) {
return;
}
bool isHidden = IsHiddenAura(unitFields, slot, spellId, state);
static char format[] = "%s%d%d%d%d%d%d";
char *guidStr = ConvertGuidToString(isSelf ? playerGuid : unitGuid);
+1 -1
View File
@@ -26,7 +26,7 @@ namespace Nampower {
constexpr uint32_t DISENCHANT_QUALITY_PURPLE = 0x04; // Epic
constexpr uint32_t MAJOR_VERSION = 4;
constexpr uint32_t MINOR_VERSION = 0;
constexpr uint32_t MINOR_VERSION = 1;
constexpr uint32_t PATCH_VERSION = 0;
constexpr int32_t LUA_REGISTRYINDEX = -10000;
-12
View File
@@ -390,12 +390,6 @@ namespace Nampower {
return 1;
}
// Block data for enemy PvP-flagged units
if (game::UnitIsPvpFlagged(unit) && game::PlayerCanAttackUnit(unit)) {
lua_pushnil(luaState);
return 1;
}
// Get unit fields (offset 68 from unit pointer)
auto *unitFields = *reinterpret_cast<game::UnitFields **>(unit + 68);
if (!unitFields) {
@@ -481,12 +475,6 @@ namespace Nampower {
return 1;
}
// Block data for enemy PvP-flagged units
if (game::UnitIsPvpFlagged(unit) && game::PlayerCanAttackUnit(unit)) {
lua_pushnil(luaState);
return 1;
}
// Get unit fields (offset 68 from unit pointer)
auto *unitFields = *reinterpret_cast<game::UnitFields **>(unit + 68);
if (!unitFields) {