alpha seems to be working

This commit is contained in:
2024-09-27 00:48:08 -04:00
parent 5815d20c1c
commit 6356d975d8
4 changed files with 39 additions and 22 deletions

View File

@@ -74,14 +74,7 @@ public:
// If the target is the enemy then increase the amount of healing by the instance data modifier for spell output.
if(sMythicPlus->EligibleTarget(target)) {
if (!attacker->GetTypeId() == TYPEID_UNIT) {
return;
}
Creature* creature = attacker->ToCreature();
if(!creature || !sMythicPlus->IsCreatureEligible(creature)) {
return;
}
MpInstanceData* instanceData = sMpDataStore->GetInstanceData(map->GetId(), map->GetInstanceId());
if(!instanceData) {
@@ -94,7 +87,6 @@ public:
} else {
damage = damage * instanceData->creature.melee;
}
// MpLogger::debug("ModifyMeleeDamage: from {} to {}); ", origDamage, damage);
}
}