Misc fixes

This commit is contained in:
hondacrx
2022-06-15 18:27:32 -04:00
parent 9636581ee9
commit 04caa3e757
5 changed files with 18 additions and 166 deletions
-27
View File
@@ -2962,33 +2962,6 @@ namespace Scripts.Spells.Items
float lastZ = MapConst.InvalidHeight;
}
[Script]
class spell_item_teach_language : SpellScript
{
public override bool Load()
{
return GetCaster().GetTypeId() == TypeId.Player;
}
public override bool Validate(SpellInfo spell)
{
return ValidateSpellInfo(SpellIds.LearnGnomishBinary, SpellIds.LearnGoblinBinary);
}
void HandleDummy(uint effIndex)
{
Player caster = GetCaster().ToPlayer();
if (RandomHelper.randChance(34))
caster.CastSpell(caster, caster.GetTeam() == Team.Alliance ? SpellIds.LearnGnomishBinary : SpellIds.LearnGoblinBinary, true);
}
public override void Register()
{
OnEffectHitTarget.Add(new EffectHandler(HandleDummy, 0, SpellEffectName.Dummy));
}
}
[Script]
class spell_item_rocket_boots : SpellScript
{