private string ApplyHeal() { string Return = ""; string Tabs = ""; if (GetVictims() != "") { Tabs = " "; } else { Tabs = " "; } if (SpecialKeyValues.ContainsKey("heal")) //if (GetVictims() != "") { Return += "\n"; Return += "\n" + Tabs + "-- Apply Heal --"; if (SpecialKeyValues.ContainsKey("heal_duration") && SpecialKeyValues.ContainsKey("heal_interval") && SpecialKeyValues.ContainsKey("heal_instances")) { if (SpecialKeyValues["heal_duration"][0] != "" && SpecialKeyValues["heal_duration"][0] != "-" && SpecialKeyValues["heal_interval"][0] != "" && SpecialKeyValues["heal_interval"][0] != "-" && SpecialKeyValues["heal_instances"][0] != "" && SpecialKeyValues["heal_instances"][0] != "-" ) { Return += "\n" + Tabs + "ApplyDamageOrHeal(\"heal\", victim, caster, playerID, self, heal/heal_instances, nil, true, 0.0, heal_interval, heal_duration)"; } } else { Return += "\n" + Tabs + "ApplyDamageOrHeal(\"heal\", victim, caster, playerID, self, heal, nil, true, nil, nil, nil)"; } } return(Return); }
private string ApplyDamage() { string Return = ""; string Tabs = ""; if (GetVictims() != "") { Tabs = " "; } else { Tabs = " "; } if (SpecialKeyValues.ContainsKey("damage")) //if (GetVictims() != "") { Return += "\n"; Return += "\n" + Tabs + "-- Apply Damage --"; if (SpecialKeyValues.ContainsKey("damage_duration") && SpecialKeyValues.ContainsKey("damage_interval") && SpecialKeyValues.ContainsKey("damage_instances")) { if (SpecialKeyValues["damage_duration"][0] != "" && SpecialKeyValues["damage_duration"][0] != "-" && SpecialKeyValues["damage_interval"][0] != "" && SpecialKeyValues["damage_interval"][0] != "-" && SpecialKeyValues["damage_instances"][0] != "" && SpecialKeyValues["damage_instances"][0] != "-" ) { Return += "\n" + Tabs + "EncounterApplyDamage(victim, caster, self, damage/damage_instances, " + DamageType + ", DOTA_DAMAGE_FLAG_NONE)"; } } else { Return += "\n" + Tabs + "EncounterApplyDamage(victim, caster, self, damage, " + DamageType + ", DOTA_DAMAGE_FLAG_NONE)"; } } return(Return); }