Soge / BigWigs

Big Wigs Feenix Development
0 stars 3 forks source link

Domo false detect. #1

Closed Cabro closed 10 years ago

Cabro commented 10 years ago

How do you make it only activate the module for Domo if the target is hostile? If I'm not mistaken it starts the module too after you defeat it and it turns friendly. Either at his spot, or @ ragnaros, it will continuously start the module... Maybe the solution is to edit functions in the TargetMonitor.lua/Core.lua file, to check if the target is also hostile. Any thoughts?

I try with

if UnitExists("target") and UnitAffectingCombat("target") and not UnitIsFriend("player", "target") then local target = UnitName("target") for _, mob in pairs(t) do if target == mob then return true end end end

In the function BigWigs.modulePrototype:Scan() But i don't know if it works, would love some PTR access for this. But would this work for Vael in BWL? Do we need to check for name instead of hostility?

Cabro commented 10 years ago

Hm in TargetMonitor.lua there's a function function BigWigsTargetMonitor:TargetCheck(unit)

Cabro commented 10 years ago

Found what was causing this.