Removed all instance scripts so we can have script project back and spells will work again.

This commit is contained in:
hondacrx
2020-12-07 15:29:06 -05:00
parent a702e070f3
commit 900362a7d7
104 changed files with 2273 additions and 41604 deletions
+2 -2
View File
@@ -300,7 +300,7 @@ namespace Scripts.Spells.DeathKnight
}
[Script]
class spell_dk_death_and_decay_AuraScript: AuraScript
class spell_dk_death_and_decay_AuraScript : AuraScript
{
void HandleDummyTick(AuraEffect aurEff)
{
@@ -429,7 +429,7 @@ namespace Scripts.Spells.DeathKnight
void HandleHeal(uint effIndex)
{
Unit caster = GetCaster();
//TODO: heal = std::min(10% health, 20% of all damage taken in last 5 seconds)
//TODO: heal = Math.Min(10% health, 20% of all damage taken in last 5 seconds)
int heal = (int)MathFunctions.CalculatePct(caster.GetMaxHealth(), GetSpellInfo().GetEffect(4).CalcValue());
caster.CastCustomSpell(SpellIds.DeathStrikeHeal, SpellValueMod.BasePoint0, heal, caster, true);