Skip to content

H7CreatureAbility

Class in MMH7Game · MMH7Game.H7CreatureAbility · native, perobjectconfig

Object › H7EffectContainer › H7BaseAbility › H7CreatureAbility

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

Properties

NameTypeNotes
mAbilitySoundAkEventprotected
mAlwaysCastableboolprotected
mChargeH7ChargeEffectprotected
mChargeSecondaryarray<H7ChargeEffect>protected
mHasChargesboolprotected

Functions

NameDeclaration
CanCastfunction bool CanCast(optional out string blockReason)
ExecuteCreatureAbilityfunction ExecuteCreatureAbility()
OnInitnative function OnInit(H7ICaster caster, optional H7EventContainerStruct container, optional int abilityID)

Default values

mCharge=(mChargeCounter=0,mOp=EOperationType.OP_TYPE_MULTIPLY,mEffectID="",mGroup=0,mRank=ESkillRank.SR_ALL_RANKS,mTags=none,mTarget=EEffectTarget.TARGET_DEFAULT,mTargetLimit=0,mTrigger=(mTriggerType=ETrigger.PERSISTENT,mChance=100,mUseLuckRoll=false),mConditions=(mExtededAbilityParameters=(UseUn...
mNumCharges=1

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