FIXED Counter Attack InRange() check is incorrect

Magus Zeal

Expert II
@GiantFreakishApe and I just went on EA to test counter attack. I was an archer and he counterattacked me with a special from a range.

In servuo there is a range check where CA only works up close:

Baseweapon.cs

Code:
if (CounterAttack.IsCountering(defender) && defender.InRange(attacker.Location, 1))

Here is the video evidence on EA:

We decided to test on EA after we couldn't get it to work on Heritage.
 

Dan

Staff Member
Administrator
Game Master
Any idea IF there is a range check? 5 tiles? 10 tiles?
 
OP
Magus Zeal

Magus Zeal

Expert II
Dan we will need to test the range - I was at least 8 tiles away in that video - I think 10 tiles is the max for all ranged type stuff. But I don't think we need that check because archers and mages already have range checks. If they cant hit then its out of range. If they cant hit there is nothing to counter. Not that spells can be counter attacked haha. but for archers and throwers their inherent range checks for hitting will make sure this cant happen screens away.
 

Dexter

Staff Member
Administrator
Game Master
The range check is already done for shooting an arrow I would imagine.
 

Dan

Staff Member
Administrator
Game Master
Yeah @DaBeanCounter is correct I believe. The range check would be prompted by the one doing the attack. No need for another check.
 

PLAY NOW

Heritage

Address
play.trueuo.com
Port
2593
Uptime
8 hours
Players Online
16
Houses
875
Vendors
282
Gold
5,404,318,901gp
Top Bottom