diff --git a/user/114.66.45.221/2_atpriest_3.c b/user/114.66.45.221/2_atpriest_3.c index b9f549b..e946030 100644 --- a/user/114.66.45.221/2_atpriest_3.c +++ b/user/114.66.45.221/2_atpriest_3.c @@ -587,8 +587,8 @@ function onKeyFrameFlag_Blessofprotection(obj, flagIndex) local phlDefense = sq_GetLevelData(obj, SKILL_BYKK_BLESSOFPROTECTION, 4, skillLevel); local mglDefense = sq_GetLevelData(obj, SKILL_BYKK_BLESSOFPROTECTION, 5, skillLevel); - local now_mgAttack = sq_GetMagicalAttack();//1000;// - now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 2)) / 100; + local now_mgAttack = sq_GetCharacterAttribute(0x2394);//1000;// + now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 102)) / 100; local addRate = now_mgAttack.tofloat() / sq_GetIntData(obj, SKILL_BYKK_BLESSOFCOURAGE, 1).tofloat(); if(addRate > 1){ hpMax = hpMax.tofloat() * (1.0 + addRate); @@ -3130,8 +3130,8 @@ function onTimeEvent_Cruxofvictoria(obj, timeEventIndex, timeEventCount) local phDefense = sq_GetLevelData(obj, SKILL_BYKK_CRUXOFVICTORIA, 6, skillLevel); local mgDefense = sq_GetLevelData(obj, SKILL_BYKK_CRUXOFVICTORIA, 7, skillLevel); - local now_mgAttack = sq_GetMagicalAttack();//1000;// - now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 2)) / 100; + local now_mgAttack = sq_GetCharacterAttribute(0x2394);//1000;// + now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 102)) / 100; // print("now_mgAttack = "+now_mgAttack); local addRate = now_mgAttack.tofloat() / sq_GetIntData(obj, SKILL_BYKK_CRUXOFVICTORIA, 1).tofloat(); // print("addRate = "+addRate); diff --git a/user/114.66.45.221/2_atpriest_4.c b/user/114.66.45.221/2_atpriest_4.c index 6411b92..65f5063 100644 --- a/user/114.66.45.221/2_atpriest_4.c +++ b/user/114.66.45.221/2_atpriest_4.c @@ -484,8 +484,8 @@ function onStartDungeon_Crusader_bykk(obj) if(AddAppendage) CNSquirrelAppendage.sq_RemoveAppendage(obj, apdPath[i]); } setSkillBonusBate_Crusader_bykk(obj); - local now_mgAttack = sq_GetMagicalAttack();//1000;// - now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 2)) / 100; + local now_mgAttack = sq_GetCharacterAttribute(0x2394);//1000;// + now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 102)) / 100; obj.getVar("isReset").setInt(0, 1); obj.getVar("mgAttackSave").setInt(0, now_mgAttack); print("now_mgAttack = "+now_mgAttack); @@ -495,8 +495,8 @@ function retset_Crusader_bykk(obj) { setSkillBonusBate_Crusader_bykk(obj); if(obj.getVar("mgAttackSave").getInt(0) > 0) return; - local now_mgAttack = sq_GetMagicalAttack();//1000;// - now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 2)) / 100; + local now_mgAttack = sq_GetCharacterAttribute(0x2394);//1000;// + now_mgAttack = now_mgAttack * (100 + sq_GetIntData(obj, 169, 102)) / 100; obj.getVar("mgAttackSave").setInt(0, now_mgAttack); print("now_mgAttack = "+now_mgAttack); }