Jump to content
×
×
  • Create New...
  • 0

Sura Mirage bug skill without sword


NesT

Question

  • Answers 13
  • Created
  • Last Reply

Top Posters For This Question

13 answers to this question

Recommended Posts

  • 0
  • Moon

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

  • 0

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

  • 0
  • 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

  • 0

 

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.