Skip to content

H7HeroAbility

Class in MMH7Game · MMH7Game.H7HeroAbility · native, perobjectconfig

Object › H7EffectContainer › H7BaseAbility › H7HeroAbility

Using it from Lua
h7.find_all("H7HeroAbility")            -- live instances
h7.find_class("MMH7Game.H7HeroAbility")   -- the class
h7.hook("MMH7Game.H7HeroAbility.CanCast", fn)

Properties

NameTypeNotes
mAbilitySoundAkEventprotected
mCooldownTimerintprotected
mCooldownTimerCurrentintprotected
mIsCombatAbilityboolprotected
mIsSpellboolprotected
mIsUltimateboolprotected
mManaCostintprotected
mMinimumRankOverrideH7StructsAndEnumsNative.ESkillRankprotected
mRankH7StructsAndEnumsNative.ESkillRankprotected

Functions

NameDeclaration
CanCastfunction bool CanCast(optional out string blockReason)
DoSpellFinishUpdatesfunction DoSpellFinishUpdates()
DoSpellStartUpdatesfunction DoSpellStartUpdates()
ExecuteHeroAbilityfunction ExecuteHeroAbility()
GetCooldownTimerfunction int GetCooldownTimer()
GetCooldownTimerCurrentfunction int GetCooldownTimerCurrent()
GetIDStringfunction string GetIDString()
GetInfoBoxfunction string GetInfoBox(H7EditorHero Hero, optional bool withCastOnInfo = true)
GetManaCostfunction int GetManaCost()
GetMinimumRankOverridefunction H7StructsAndEnumsNative.ESkillRank GetMinimumRankOverride()
GetQuickCombatValuefunction float GetQuickCombatValue(float armyRelation, float relationThreshold)
GetRankfunction H7StructsAndEnumsNative.ESkillRank GetRank()
IsCombatAbilityfunction bool IsCombatAbility()
IsDamageFilterfunction bool IsDamageFilter()
IsGrandMasterAbilityfunction bool IsGrandMasterAbility()
IsOnCooldownfunction bool IsOnCooldown()
IsSpellevent bool IsSpell()
IsUtilityFilterfunction bool IsUtilityFilter()
OnInitnative function OnInit(H7ICaster caster, optional H7EventContainerStruct container, optional int abilityID)
SetManaCostfunction SetManaCost(int Cost)
SetMinimumRankOverridefunction SetMinimumRankOverride(H7StructsAndEnumsNative.ESkillRank R)
UpdateCooldownTimerfunction UpdateCooldownTimer()

Default values

mMinimumRankOverride=ESkillRank.None
mQuickCombatTargetType=true

Inherited

FromMembers
H7BaseAbilityProperties: mAbilityDirection, mAbilityID, mAiGeneralUtility, mAiTargetStatPrimary, mAiTargetStatSecondary, mAnimation, mAreaOfEffectSize, mAuraData, mCameraShake, mCameraShakeDelay, mCastedOnce, mCasterFX, mCasterNoDuplicateFXS, mCoolCamDuration, mCritProjectile, mCurrentCharges, mDisableAllyTargeting, mDisableFleeSurrender, mEventContainerActivateAbility, mHitTargetFX, mImpactFX, mImpactTargetPos, mIsAreaFilled, mIsCasting, mIsDirectionalCast, mIsDivingAttack, mIsGovernorEffect, mIsHeal, mIsPassive, mIsRanged, mIsSummoningSpell, mIsTeleportSpell, mMoveToTarget, mMoveToTargetAllowCell, mNumCharges, mOncePerCombat, mOriginalPrimaryTarget, mPowerValue, mProjectile, mProjectileFiringSound, mProjectileHitSound, mQuickCombatNumOfTargets, mQuickCombatNumOfTargetsUpgraded, mQuickCombatSubstitute, mQuickCombatTargetType, mSunburstIndeces, mSunburstOriginalTargets, mSunburstTargetPoints, mSuppressCounter, mTags, mTargetClassSpecifier, mTargetCone, mTargetSelectionArea, mTargetSelectionCone, mTargetSelectionShape, mTargetShape, mTargetType, mTargetTypeOverride, mTimerRaiseEvents, mTimerSpawnCritProjectile, mTimerSpawnProjectile, mTooltipMagicGuild, mTooltipMagicGuildLocalized, mTooltipMagicGuildRankLine, mTooltipMagicGuildRankLineLocalized, mTooltipUpgraded, mTooltipUpgradedLocalized, mTsunamiRows, mTurnToTarget, mUnlearnAfterActivation, mUpradeAbility, mUseCameraShake, mUseCoolCam, mValidProjectile, mValidTimerSpawnProjectile, mWasProjectileCreated
Functions: Abort, Activate, AICalculateAllPossibleTargets, AllowedToMoveOnCell, CalculateTargets, CanAffectAtLeastOneTarget, CanCast, CanCastOnTargetActor, CanDiveAttackTo, CheckValidTargets, DelayedDoProjectile, DoHitTargetFX, DoParticleFXCaster, DoParticleFXImpact, DoProjectileAbility, DoSunburstBeams, Finish, FlushEffectFX, GenerateCombatAction, GetAbilityDirection, GetAiGeneralUtility, GetAiTargetStatPrimary, GetAiTargetStatSecondary, GetAllTags, GetAnimation, GetAuraData, GetAuraDuration, GetAuraProperties, GetCasterFX, GetCasterFXSocket, GetConeAngle, GetConeDebug, GetConePreview, GetConeRange, GetCreatureAnimation, GetCurrentCharges, GetDisableFleeSurrender, GetEffectOnRankAsLine, GetEventContainerActivateAbility, GetFlashIconPath, GetFogRevealRadius, GetHeroAnimation, GetHitFX, GetID, GetImpactFX, GetImpactTargetPos, GetNumCharges, GetOriginalPrimaryTarget, GetPath, GetPowerValue, GetProjectile, GetProjectileTargetLocation, GetQuickCombatNumOfTargets, GetQuickCombatNumOfTargetsUpgraded, GetQuickCombatSubstitutes, GetQuickCombatTargetType, GetRotatorForDirection, GetShape, GetTags, GetTargetArea, GetTargetClassSpecifier, GetTargetType, GetTooltip, GetTooltipForCaster, GetTooltipLocalized, GetTooltipMagicGuildLocalized, GetTooltipMagicGuildRankLineLocalized, GetTooltipUpgradedLocalized, GetTsunamiRows, HasCasterFX, HasTag, HighlightsRed, HitUnit, InstanciateEffectsFromStructData, IsAbility, IsActiveAura, IsArea, IsAreaFilled, IsAura, IsCasting, IsCustom, IsDirectionalCast, IsDivingAttack, IsFromItem, IsFromScroll, IsGovernorEffect, IsHeal, IsInMagicGuild, IsPassive, IsRanged, IsSpell, IsSummoningSpell, IsSuppressed, IsTargetingFriendsAllowed, isTeleportSpell, IsTsunami, IsUpgraded, LoadEffectFX, ModifyAttackDamage, OnInit, OverrideTargetType, PlayCameraShakeDelayed, PlayHitTargetFX, RaiseActivateAbilityEvents, RaiseGetImpactEvent, RaiseImpactEventAndFinish, RevealsFog, SetAreaFilled, SetAuraDuration, SetCasting, SetCurrentCharges, SetNumCharges, SetShape, SetTargetArea, SetTargetCone, SetTargetType, SetUnlearnAfterActivation, ShouldMoveToTarget, ShouldTurnTowardsTarget, Suppress, UnlearnAfterActivation, UseCameraShake
H7EffectContainerProperties: mAbilitySchool, mAudioVisualEffects, mCaster, mCasterSnapShot, mCommandEffects, mComment, mDamageEffects, mEventManager, mEventuallySuppressesRetaliation, mEventuallySuppressesRetaliationChecked, mFXLoaded, mIcon, mInstanciatedEffects, mInstanciatedEffectsByTooltip, mInstanciatedEffectsDone, mIsDisplayed, mName, mNameInst, mNeedsPrivileg, mOwner, mPrivilegID, mProducesResources, mRankOverride, mResistanceEffects, mSkillType, mSourceContainer, mSpecialEffects, mSpellEffects, mStatModEffects, mTargets, mTargetVectors, mTooltip, mTooltipLocalized, mTooltipLog, mTooltipMapping
Functions: AddLog, AddPlaceholdersToReplBuffer, AddRepl, AddSpellEffect, ApplyHelperReplacements, CanAffectAlly, CanAffectDead, CanAffectEnemy, CanRemoveStasis, ClearSpellEffects, DeleteAllInstanciatedEffects, DidInstanciateEffects, DoOperation, FlushEffectFX, FullfillsSpecialSelectorCondition, GetAllEffects, GetArchetypeEffect, GetArchetypeID, GetBestDamageEffect, GetBuffEffect, GetCaster, GetCasterOriginal, GetClassNameBySelector, GetCorrespondingRank, GetDamageEffect, GetDamageRange, GetDebugName, GetEffectBySelector, GetEffectDamage, GetEffectFunctionProvider, GetEffectOnRank, GetEffectOnRankAsLine, GetEffects, GetEffectsLength, GetEffectsOfType, GetEventManager, GetIcon, GetID, GetInitiator, GetLocaNameForStat, GetModifiedStatsAndValues, GetName, GetNameNative, GetNumGroups, GetOwner, GetPermanentStatMods, GetPersistentResistanceEffects, GetPlaceholders, GetPlaceholdersNew, GetProductionEffectSpecials, GetRankOverride, GetSchool, GetSchoolColor, GetSchoolDamageName, GetSchoolFlashPath, GetSchoolName, GetShieldEffects, GetSkillType, GetSourceEffect, GetSpellEffects, GetStringForOperation, GetTarget, GetTargets, GetTargetVector, GetTargetVectors, GetTeleportEffectRange, GetTimeEntityByEvent, GetTooltip, GetTooltipEffectLists, GetTooltipLocalized, GetTooltipModifierList, HandleIncomeEffects, HasDamagingEffectSpecial, HasInitiator, HasNegativeEffect, HasPositiveEffect, HasStasisEffect, HasStatModEffects, HasStatModFor, InstanciateEffectsFromStructData, IsAbility, IsAllowedChar, IsArchetype, IsBuff, IsDisplayed, IsEqual, IsHeroItem, IsLocaKey, IsMight, IsSkill, LoadEffectFX, LocalizeName, OverrideCaster, ProducesResources, ProvidesCover, ResolveIconPlaceholder, ResolvePlaceholder, SetCaster, SetDisplayed, SetOwner, SetProducesResources, SetRankOverride, SetSourceEffect, SetStatModEffects, SetTarget, SetTargets, SetTargetVector, SetTargetVectors, SortTooltipMapping, SplitPlaceholder, TargetIsImmuneToAllEffects, TargetIsImmuneToAllExecutingEffects, TargetIsImmuneToAllExecutingEffectsOnArchetype, TooltipMappingCompare
Object13 properties, 308 functions