Moderator: MacroQuest Developers

Then share it and use it instead of this ridiculous code. What's obviously needed here is a table lookup. It's not a matter of formatting, this code is flat-out doing it wrong, attempting to encodify people's gut feeling that "there must be some order to it" to the stacking rules. Sure there is. We have table made by a human based on intuitions and some ideas about how things "should be" with some templating and systematic rules applied later.Not really necessary as I have a database of all the spells... but thanks anyway.

Are you really trying to say we should include an actual database runtime in the base MQ2 code? That in itself would make this unusable and unmanageable for the average user.Cr4zyb4rd wrote:Then share it and use it instead of this ridiculous code. What's obviously needed here is a table lookup.

Code: Select all
if (!((bSpell->Attrib[i]==10 && (bSpell->Base[i]==-6 || bSpell->Base[i]==0)) ||
(aSpell->Attrib[i]==10 && (aSpell->Base[i]==-6 || aSpell->Base[i]==0)) ||
(bSpell->Attrib[i]==79 && bSpell->Base[i]>0 && bSpell->TargetType==6) ||
(aSpell->Attrib[i]==79 && aSpell->Base[i]>0 && aSpell->TargetType==6) ||
(bSpell->Attrib[i]==0 && bSpell->Base[i]<0) ||
(aSpell->Attrib[i]==0 && aSpell->Base[i]<0) ||
(bSpell->Attrib[i]==148 || bSpell->Attrib[i]==149) ||
(aSpell->Attrib[i]==148 || aSpell->Attrib[i]==149)))
return false;

demonstar55 wrote:More spells with issues: Avatar line and bard haste line. Specifically Champion (5427) and War March of Brekt (18063)
This isn't the same issue that I mentioned originally, but with the whole beneficial spell and song should stack even if they have conflicting slots issue that I also mentioned.
This is returning FALSE when it should return TRUE
dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...



dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...




dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

rswiders wrote:ok im confused. Pete, are you saying that Zombieskin DOES NOT stack with Death Bloom/Blossom?