New spell effects

This commit is contained in:
KayenEQ
2014-01-27 05:17:52 -05:00
parent 4b07f4ffc5
commit d98ed8f419
9 changed files with 102 additions and 20 deletions
+2 -13
View File
@@ -7610,19 +7610,8 @@ void Client::Handle_OP_Mend(const EQApplicationPacket *app)
int mendhp = GetMaxHP() / 4;
int currenthp = GetHP();
if (MakeRandomInt(0, 199) < (int)GetSkill(SkillMend)) {
int criticalchance = 0;
switch(GetAA(aaCriticalMend)){
case 1:
criticalchance = 5;
break;
case 2:
criticalchance = 10;
break;
case 3:
criticalchance = 25;
break;
}
criticalchance += 5*GetAA(aaMendingoftheTranquil);
int criticalchance = spellbonuses.CriticalMend + itembonuses.CriticalMend + aabonuses.CriticalMend;
if(MakeRandomInt(0,99) < criticalchance){
mendhp *= 2;