mirror of
https://github.com/brues-code/nampower.git
synced 2026-09-21 23:26:54 +00:00
remove pvp restrictions as they are pointless
This commit is contained in:
+4564
-4564
File diff suppressed because it is too large
Load Diff
@@ -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
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user