mackal

Untitled

Mar 30th, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.72 KB | None | 0 0
  1. --- a/MQ2Main/MQ2Utilities.cpp  Sat Mar 29 21:03:58 2014
  2. +++ b/MQ2Main/MQ2Utilities.cpp  Sun Mar 30 15:52:56 2014
  3. @@ -6517,28 +6517,7 @@
  4.          || (aSpell->Attrib[i]==412 || bSpell->Attrib[i]==412)      // Limit: Race
  5.          || (aSpell->Attrib[i]==422 || bSpell->Attrib[i]==422)      // Limit: Use Min
  6.          || (aSpell->Attrib[i]==423 || bSpell->Attrib[i]==423)      // Limit: Use Type
  7. -        || (aSpell->Attrib[i]==428 || bSpell->Attrib[i]==428)      // Skill_Proc_Modifier
  8. -        || ((aSpell->Attrib[i]==2 && bSpell->Attrib[i]==2) &&      // ATK
  9. -               ((aSpell->SpellType==1 || aSpell->SpellType==2) && (bSpell->SpellType==1 || bSpell->SpellType==2)) &&
  10. -               !(aSpell->DurationWindow==bSpell->DurationWindow))
  11. -        || ((aSpell->Attrib[i]==4 && bSpell->Attrib[i]==4) &&      // STR
  12. -               ((aSpell->SpellType==1 || aSpell->SpellType==2) && (bSpell->SpellType==1 || bSpell->SpellType==2)) &&
  13. -               !(aSpell->DurationWindow==bSpell->DurationWindow))
  14. -        || ((aSpell->Attrib[i]==5 && bSpell->Attrib[i]==5) &&      // DEX
  15. -               ((aSpell->SpellType==1 || aSpell->SpellType==2) && (bSpell->SpellType==1 || bSpell->SpellType==2)) &&
  16. -               !(aSpell->DurationWindow==bSpell->DurationWindow))
  17. -        || ((aSpell->Attrib[i]==6 && bSpell->Attrib[i]==6) &&      // AGI
  18. -               ((aSpell->SpellType==1 || aSpell->SpellType==2) && (bSpell->SpellType==1 || bSpell->SpellType==2)) &&
  19. -               !(aSpell->DurationWindow==bSpell->DurationWindow))
  20. -        || ((aSpell->Attrib[i]==7 && bSpell->Attrib[i]==7) &&      // STA
  21. -               ((aSpell->SpellType==1 || aSpell->SpellType==2) && (bSpell->SpellType==1 || bSpell->SpellType==2)) &&
  22. -               !(aSpell->DurationWindow==bSpell->DurationWindow))
  23. -        || ((aSpell->Attrib[i]==8 && bSpell->Attrib[i]==8) &&      // INT
  24. -               ((aSpell->SpellType==1 || aSpell->SpellType==2) && (bSpell->SpellType==1 || bSpell->SpellType==2)) &&
  25. -               !(aSpell->DurationWindow==bSpell->DurationWindow))
  26. -        || ((aSpell->Attrib[i]==9 && bSpell->Attrib[i]==9) &&      // WIS
  27. -               ((aSpell->SpellType==1 || aSpell->SpellType==2) && (bSpell->SpellType==1 || bSpell->SpellType==2)) &&
  28. -               !(aSpell->DurationWindow==bSpell->DurationWindow)));
  29. +        || (aSpell->Attrib[i]==428 || bSpell->Attrib[i]==428));    // Skill_Proc_Modifier
  30.  }
  31.  
  32.  // ***************************************************************************
  33. @@ -6550,6 +6529,10 @@
  34.  // ***************************************************************************
  35.  bool BuffStackTest(PSPELL aSpell, PSPELL bSpell){
  36.      if (aSpell->ID==bSpell->ID) return true;
  37. +
  38. +    if (aSpell->DurationWindow != bSpell->DurationWindow && // one goes to song window one doesn't and at least one is a bard song
  39. +            (aSpell->ClassLevel[8] <= MAX_PC_LEVEL || bSpell->ClassLevel[8] <= MAX_PC_LEVEL))
  40. +        return true;
  41.  
  42.      int i;
  43.      for (i=0; i<=11; i++) {
Advertisement
Add Comment
Please, Sign In to add comment