Files
praxisandClaude Fable 5.2 45ecd73fe0 Evidence records
1888 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

108 lines
6.6 KiB
JSON

{
"policy": "named-all-school-item-aoe-reduction-v1",
"required_source_mask": 127,
"sha256": {
"source_header": "ed7f67babe916cbbf91f7a1f1a9a9af694a2469d2e07eb10e94f0ae883678cb8",
"source_unit": "3cb321fe39a74a612484df6d227bcd319d476d3ffd8b03e75b981ca1633468b5",
"target_header": "1784b495ea9704bbe12223c2ad42d9d5fea7d320f0dc6c0055cd090cb7e5498b",
"target_unit": "70895cc85720f42319ead6ff1eaebd3272f36b1f87db96905dfa7df668d5ebbd"
},
"signed_percent_amount_preserved": true,
"source_aura": 194,
"source_misc_ignored": true,
"target_absorption_aura_rejected": 194,
"target_aura": 229,
"target_misc_is_school_mask": true,
"kind": "reviewed-item-aoe-avoidance-namespace-and-consumer-proof",
"source_194": "SPELL_AURA_MOD_AOE_DAMAGE_PERCENT_TAKEN",
"native_194": "SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL; unrelated absorption semantics, explicitly rejected",
"native_229": "SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE",
"signed_amount": {
"source_base_points": -11,
"source_die_sides": 1,
"effective_amount": -10,
"native_effect_base_points": -10,
"multiplier_for_unmodified_single_aura": 0.9,
"damage_simulated_or_tested": false
},
"school_mask": {
"source_misc": 127,
"source_consumer_ignores_misc_mask": true,
"native_consumer_filters_effect_misc_by_damage_school_mask": true,
"target_effect_misc": [
127,
0
],
"partial_masks_rejected": true
},
"text_policy": "Literal source reduction10%; source $s1 replaced only after strict unscaled source validation. This is a tooltip definition, not observed damage.",
"source_files": {
"source_header": {
"path": "/home/praxis/Servers/tortoise-wow/src/game/Spells/SpellAuraDefines.h",
"sha256": "ed7f67babe916cbbf91f7a1f1a9a9af694a2469d2e07eb10e94f0ae883678cb8"
},
"target_header": {
"path": "/home/praxis/Projects/WoW-Hybrid/servers/trinity-forever/src/server/game/Spells/Auras/SpellAuraDefines.h",
"sha256": "1784b495ea9704bbe12223c2ad42d9d5fea7d320f0dc6c0055cd090cb7e5498b"
},
"source_unit": {
"path": "/home/praxis/Servers/tortoise-wow/src/game/Objects/Unit.cpp",
"sha256": "3cb321fe39a74a612484df6d227bcd319d476d3ffd8b03e75b981ca1633468b5"
},
"target_unit": {
"path": "/home/praxis/Projects/WoW-Hybrid/servers/trinity-forever/src/server/game/Entities/Unit/Unit.cpp",
"sha256": "70895cc85720f42319ead6ff1eaebd3272f36b1f87db96905dfa7df668d5ebbd"
}
},
"code_evidence": {
"source_header": [
{
"first_line": 331,
"last_line": 335,
"text": " SPELL_AURA_AURA_SPELL = 192, // Adds the auras of a spell while this aura is active.\n SPELL_AURA_SPLIT_DAMAGE_GROUP_PCT = 193, // Needed for Spirit Link.\n SPELL_AURA_MOD_AOE_DAMAGE_PERCENT_TAKEN = 194, // Needed for Pet Avoidance.\n SPELL_AURA_MOD_HONOR_GAIN = 195, // From WotLK.\n SPELL_AURA_ENABLE_FLYING = 196, // For flying mounts."
}
],
"target_header": [
{
"first_line": 279,
"last_line": 282,
"text": " SPELL_AURA_MOD_MELEE_RANGED_HASTE = 192,\n SPELL_AURA_MELEE_SLOW = 193,\n SPELL_AURA_MOD_TARGET_ABSORB_SCHOOL = 194,\n SPELL_AURA_LEARN_SPELL = 195,"
},
{
"first_line": 314,
"last_line": 318,
"text": " SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE = 227,\n SPELL_AURA_DETECT_STEALTH = 228,\n SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE = 229,\n SPELL_AURA_MOD_MAX_HEALTH = 230,\n SPELL_AURA_PROC_TRIGGER_SPELL_WITH_VALUE = 231,"
}
],
"source_unit": [
{
"first_line": 3430,
"last_line": 3439,
"text": "float Unit::GetTotalAuraMultiplier(AuraType auratype) const\n{\n float multiplier = 1.0f;\n\n AuraList const& mTotalAuraList = GetAurasByType(auratype);\n for (const auto& i : mTotalAuraList)\n multiplier *= (100.0f + i->GetModifier()->m_amount) / 100.0f;\n\n return multiplier;\n}"
},
{
"first_line": 5733,
"last_line": 5742,
"text": " uint32 schoolMask = spell ? spell->m_spellSchoolMask : spellProto->GetSpellSchoolMask();\n\n // Taken total percent damage auras\n float takenTotalMod = 1.0f;\n takenTotalMod *= GetTotalAuraMultiplierByMiscMask(SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN, schoolMask);\n if (spellProto->IsAreaOfEffectSpell())\n takenTotalMod *= GetTotalAuraMultiplier(SPELL_AURA_MOD_AOE_DAMAGE_PERCENT_TAKEN);\n if (damagetype == DOT)\n takenTotalMod *= GetTotalAuraMultiplier(SPELL_AURA_MOD_PERIODIC_DAMAGE_PERCENT_TAKEN);\n"
}
],
"target_unit": [
{
"first_line": 5094,
"last_line": 5111,
"text": "float Unit::GetTotalAuraMultiplier(AuraType auraType, std::function<bool(AuraEffect const*)> const& predicate) const\n{\n AuraEffectList const& mTotalAuraList = GetAuraEffectsByType(auraType);\n if (mTotalAuraList.empty())\n return 1.0f;\n\n std::map<SpellGroup, SpellEffectValue> sameEffectSpellGroup;\n SpellEffectValue multiplier = 1.0;\n\n for (AuraEffect const* aurEff : mTotalAuraList)\n {\n if (predicate(aurEff))\n {\n // Check if the Aura Effect has a the Same Effect Stack Rule and if so, use the highest amount of that SpellGroup\n // If the Aura Effect does not have this Stack Rule, it returns false so we can add to the multiplier as usual\n if (!sSpellMgr->AddSameEffectStackRuleSpellGroups(aurEff->GetSpellInfo(), auraType, aurEff->GetAmount(), sameEffectSpellGroup))\n AddPct(multiplier, aurEff->GetAmount());\n }"
},
{
"first_line": 5183,
"last_line": 5191,
"text": "float Unit::GetTotalAuraMultiplierByMiscMask(AuraType auraType, uint32 miscMask) const\n{\n return GetTotalAuraMultiplier(auraType, [miscMask](AuraEffect const* aurEff) -> bool\n {\n if ((aurEff->GetMiscValue() & miscMask) != 0)\n return true;\n return false;\n });\n}"
},
{
"first_line": 12654,
"last_line": 12662,
"text": "}\n\nint32 Unit::CalculateAOEAvoidance(int32 damage, uint32 schoolMask, bool npcCaster) const\n{\n damage = int32(float(damage) * GetTotalAuraMultiplierByMiscMask(SPELL_AURA_MOD_AOE_DAMAGE_AVOIDANCE, schoolMask));\n if (npcCaster)\n damage = int32(float(damage) * GetTotalAuraMultiplierByMiscMask(SPELL_AURA_MOD_CREATURE_AOE_DAMAGE_AVOIDANCE, schoolMask));\n\n return damage;"
}
]
}
}