if you copy paste, you also copy the "wrong" end of lines..
just look at long lines and remove the linefeeds in your editor.
btw, shortly after my patch, mangos added another dbc based %% value.. i think it was block rating..
the patch doesnt cover this issue.. and has to be done manually, right now.
lets see....
here we go >> http://filebeam.com/8fbd33466604a7959bac4577c6e9af97
looks like this
Index: src/game/Player.cpp
===================================================================
--- src/game/Player.cpp (revision 6109)
+++ src/game/Player.cpp (working copy)
@@ -4005,7 +4015,7 @@
uint32 level = getLevel();
uint32 pclass = getClass();
- if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+ if (level>70) level = 70;
GtChanceToMeleeCritBaseEntry const *critBase = sGtChanceToMeleeCritBaseStore.LookupEntry(pclass-1);
GtChanceToMeleeCritEntry const *critRatio = sGtChanceToMeleeCritStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4050,7 +4060,7 @@
uint32 level = getLevel();
uint32 pclass = getClass();
- if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+ if (level>70) level = 70;
// Dodge per agility for most classes equal crit per agility (but for some classes need apply some multiplier)
GtChanceToMeleeCritEntry const *dodgeRatio = sGtChanceToMeleeCritStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4066,7 +4076,7 @@
uint32 level = getLevel();
uint32 pclass = getClass();
- if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+ if (level>70) level = 70;
GtChanceToSpellCritBaseEntry const *critBase = sGtChanceToSpellCritBaseStore.LookupEntry(pclass-1);
GtChanceToSpellCritEntry const *critRatio = sGtChanceToSpellCritStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4082,7 +4092,7 @@
uint32 level = getLevel();
uint32 rating_id = index - PLAYER_FIELD_COMBAT_RATING_1;
- if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+ if (level>70) level = 70;
GtCombatRatingsEntry const *Rating = sGtCombatRatingsStore.LookupEntry(rating_id*GT_MAX_LEVEL+level-1);
if (Rating == NULL)
@@ -4149,7 +4159,7 @@
uint32 level = getLevel();
uint32 pclass = getClass();
- if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+ if (level>70) level = 70;
GtOCTRegenHPEntry const *baseRatio = sGtOCTRegenHPStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
GtRegenHPPerSptEntry const *moreRatio = sGtRegenHPPerSptStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
@@ -4170,7 +4180,7 @@
uint32 level = getLevel();
uint32 pclass = getClass();
- if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
+ if (level>70) level = 70;
// GtOCTRegenMPEntry const *baseRatio = sGtOCTRegenMPStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);
GtRegenMPPerSptEntry const *moreRatio = sGtRegenMPPerSptStore.LookupEntry((pclass-1)*GT_MAX_LEVEL + level-1);