Jump to content

Sura Mirage bug skill without sword


Recommended Posts

  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • Active Member

Hey guys,

The sura mirage have a bug, when you make AOS ( aura of sword ) without the weapon , the player makes huge damage which hitting like that.

Any fix for that ?

 

I have a temporary fix for that to prevent player using that skill without weapon.

Link to comment
Share on other sites

  • 2 weeks later...

So Add this in the First Line of

bool CHARACTER::Damage()

if (pAttacker->IsAffectFlag(AFF_GEOMGYEONG) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GEOMKYUNG);
}
if (pAttacker->IsAffectFlag(AFF_GWIGUM) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GWIGEOM);
}

It will Automatic Deacitvate Aura & Sura Sword ;) if you hit Someone! :D

 

Greatz

Link to comment
Share on other sites

  • 2 weeks later...
  • Premium

So Add this in the First Line of

bool CHARACTER::Damage()

if (pAttacker->IsAffectFlag(AFF_GEOMGYEONG) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GEOMKYUNG);
}
if (pAttacker->IsAffectFlag(AFF_GWIGUM) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GWIGEOM);
}

It will Automatic Deacitvate Aura & Sura Sword ;) if you hit Someone! :D

 

Greatz

In what cpp file ?

Link to comment
Share on other sites

 

So Add this in the First Line of

bool CHARACTER::Damage()

if (pAttacker->IsAffectFlag(AFF_GEOMGYEONG) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GEOMKYUNG);
}
if (pAttacker->IsAffectFlag(AFF_GWIGUM) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GWIGEOM);
}

It will Automatic Deacitvate Aura & Sura Sword ;) if you hit Someone! :D

 

Greatz

In what cpp file ?

 

char_battle.cpp:1603 in my case

Link to comment
Share on other sites

So Add this in the First Line of

bool CHARACTER::Damage()

if (pAttacker->IsAffectFlag(AFF_GEOMGYEONG) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GEOMKYUNG);
}
if (pAttacker->IsAffectFlag(AFF_GWIGUM) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GWIGEOM);
}

It will Automatic Deacitvate Aura & Sura Sword ;) if you hit Someone! :D

 

Greatz

 

Nice coredowner.

Link to comment
Share on other sites

  • 2 months later...

So Add this in the First Line of

bool CHARACTER::Damage()

if (pAttacker->IsAffectFlag(AFF_GEOMGYEONG) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GEOMKYUNG);
}
if (pAttacker->IsAffectFlag(AFF_GWIGUM) && !pAttacker->GetWear(WEAR_WEAPON))
{
    pAttacker->RemoveAffect(SKILL_GWIGEOM);
}

It will Automatic Deacitvate Aura & Sura Sword ;) if you hit Someone! :D

 

Greatz

 

Nice coredowner.

Tested and yes its a core downer...

Any other fix?

Link to comment
Share on other sites

Hey, as far I understand from source, huge damage for skills without weapon happening because in such cases doesn't calculate weapon resistance (sword resistance for sura).

In char_skill.cpp at

case SKILL_ATTR_TYPE_MELEE:

You can see how calculate dmg, for example:

					if (pkWeapon)
						switch (pkWeapon->GetSubType())
						{
							case WEAPON_SWORD:
								iDam = iDam * (100 - pkChrVictim->GetPoint(POINT_RESIST_SWORD)) / 100;
								break;

So I've added this part after "switch" (probably not a best way to fix):
 

if (m_pkChr->GetJob() == JOB_SURA && !pkWeapon)
    iDam = iDam * (100 - pkChrVictim->GetPoint(POINT_RESIST_SWORD)) / 100;

 

With current changes for sura skills without weapon, core keep using sword resistance for damage calculation.

 

Link to comment
Share on other sites

  • 5 months later...

in char_skill.cpp, add this:

if ((dwVnum == SKILL_GEOMKYUNG || dwVnum == SKILL_GWIGEOM) && !GetWear(WEAR_WEAPON))
            return false;

under this:


   
      

bool CHARACTER::UseSkill(DWORD dwVnum, LPCHARACTER pkVictim, bool bUseGrandMaster)
{
    if (false == CanUseSkill(dwVnum))
        return false;
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.