Post ur veng method
|
Say if you cast veng and someone kills you your veng still hits even tho you die, which causes alot of double deaths, and unfair kills anyone know how to fix, it's for a d-s base.
Use the variable holding what player you're attacking and add something like this where the Vengeance damage is caused.
idk might work.Code:if(AttackPlayer.playerLevel[HPNumber] == 0) { return; }
That wouldn't work because there hp is above 0 when you hit them. Vengeance hits before the player is dead.
Ooh I missread. Maybe using the isDead boolean or something?
inside the veng method
Could work.Code:if(isDead == true) { return; }
You don't understand, the player isn't dead when you hit him he's still alive.
bump
Hmm.. try something like
I doubt thats correct, but what i mean is, it will caulcuate if the hit you do brings him to 0 hp. If he is at 0 hp, then it will return, so the vengeance will not be used.Code:if(Attackingon2.currentHealth - hitDiff <= 0 ) { return; }
hes alive when you hit him dont you understand
Yes, i am aware of that.
This code checks as it does the damage if the damage delt lowers him to 0 hp. If its equal to or below 0, it will not venge.Code:if(Attackingon2.currentHealth - hitDiff <= 0 ) { return; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |