We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$event->setBaseDamage(1.0); // or 1 or any int/float
If you remove all plugins, does the issue still occur?
No
If the issue is not reproducible without plugins:
public function onDamage(EntityDamageByEntityEvent $event):void{ $damager = $event->getDamager(); $entity = $event->getEntity(); If($event->isCancelled()){ return; } if($damager instanceof Player and $entity instanceof Player){ $event->setBaseDamage(1); // Completely removes attack speed... $damager->sendMessage("Damage Event Triggered."); } }
The text was updated successfully, but these errors were encountered:
I don't think this is the right function for this thing. Since you want to make the speed of attack faster, consider using "setAttackCooldown"
Sorry, something went wrong.
No branches or pull requests
Issue description
$event->setBaseDamage(1.0); // or 1 or any int/float
completely removes attack speed.Steps to reproduce the issue
OS and versions
If you remove all plugins, does the issue still occur?
No
If the issue is not reproducible without plugins:
Crashdump, backtrace or other files
public function onDamage(EntityDamageByEntityEvent $event):void{
$damager = $event->getDamager();
$entity = $event->getEntity();
If($event->isCancelled()){
return;
}
if($damager instanceof Player and $entity instanceof Player){
$event->setBaseDamage(1); // Completely removes attack speed...
$damager->sendMessage("Damage Event Triggered.");
}
}
The text was updated successfully, but these errors were encountered: