Topic: Quickly shooting projectiles can ‘eat’ shots

  • Author
    Posts
  • #27674
    TaroEld
    Participant

    This bug has been around for a while. If you quickly fire two shots at an enemy, using Quick Shot for example, it’s possible that the first shot kills the enemy, and yet the second one will still fire. This second shot won’t do anything, but still eat the AP of the user.
    I reckon this has something to do with the onScheduledTargetHit method. This checks if the target is dead, and returns at that point:

    if (!_info.TargetEntity.isAlive())
    {
    	return;
    }

    Maybe it would be possible to refund the AP of the user at this point:

    if (!_info.TargetEntity.isAlive())
    {
    	_info.User.ActionPoints += _info.Skill.ActionPointCost
    	return;
    }
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.