mackal

FreeBuffSlots fix

May 2nd, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.05 KB | None | 0 0
  1. --- a/MQ2Main/MQ2DataTypes.cpp  Wed Apr 09 13:09:54 2014
  2. +++ b/MQ2Main/MQ2DataTypes.cpp  Fri May 02 16:29:28 2014
  3. @@ -2272,21 +2272,7 @@
  4.          Dest.Type=pStringType;
  5.          return true;
  6.      case FreeBuffSlots:
  7. -        Dest.DWord=GetAAIndexByName("mystical attuning");
  8. -        if (PlayerHasAAAbility(Dest.DWord))
  9. -        {
  10. -            for (unsigned int j=0; j < AA_CHAR_MAX_REAL; j++)
  11. -            {
  12. -                if ( pPCData->GetAltAbilityIndex(j) == Dest.DWord)
  13. -                {
  14. -                   PCHARINFO2 pChar2 = GetCharInfo2();
  15. -                    Dest.DWord=15+(pChar2->AAList[j].PointsSpent/5);
  16. -                    break;
  17. -                }
  18. -            }
  19. -        } else Dest.DWord = 15;
  20. -        if(GetAAIndexByName("Embrace of the Dark Reign")) Dest.DWord++;
  21. -        if(GetAAIndexByName("Embrace of the Keepers")) Dest.DWord++;
  22. +        Dest.DWord = 15 + pCharData1->TotalEffect(327, 1, 0, 1, 1);
  23.          if(GetCharInfo()->pSpawn->Level > 71) Dest.DWord++;
  24.          if(GetCharInfo()->pSpawn->Level > 74) Dest.DWord++;
Add Comment
Please, Sign In to add comment